xref: /llvm-project/llvm/test/CodeGen/X86/inline-asm-i-constraint-i1.ll (revision 4841643a1da20d5af5b18645ae169f8e3d865f9c)
1; RUN: llc -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s
2
3; Make sure that boolean immediates are properly (zero) extended.
4; CHECK: .Ltmp[[N:[0-9]+]]:
5; CHECK-NEXT: .quad (42+1)-.Ltmp[[N]]
6
7target triple = "x86_64-unknown-linux-gnu"
8
9define i32 @foo() #0 {
10entry:
11  tail call void asm sideeffect ".quad 42 + ${0:c} - .\0A\09", "i,~{dirflag},~{fpsr},~{flags}"(i1 true) #0
12  ret i32 1
13}
14
15attributes #0 = { nounwind }
16