aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/X86/inline-asm-i-constraint-i1.ll
blob: 02cfec9fdfba654f311f73fdb6f8a9512f0eca08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: llc -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s

; Make sure that boolean immediates are properly (zero) extended.
; CHECK: .Ltmp[[N:[0-9]+]]:
; CHECK-NEXT: .quad 42+1-.Ltmp[[N]]

target triple = "x86_64-unknown-linux-gnu"

define i32 @foo() #0 {
entry:
  tail call void asm sideeffect ".quad 42 + ${0:c} - .\0A\09", "i,~{dirflag},~{fpsr},~{flags}"(i1 true) #0
  ret i32 1
}

attributes #0 = { nounwind }