summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Thumb2/inline-asm-i-constraint-i1.ll
blob: fb28915b24c71fc2987a6eef7f4165514ec504d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; RUN: llc -mtriple=thumbv8-none-linux-gnueabi < %s | FileCheck %s

; Make sure that boolean immediates are properly (zero) extended.
; CHECK: TEST 42 + 1 - .

target triple = "thumbv8-none-linux-gnueabi"

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

attributes #0 = { nounwind }
OpenPOWER on IntegriCloud