blob: fca1a185d86ca1d1a660de05f6752370a1341a7c [file] [log] [blame]
Kees Cookc2187c22019-05-22 16:16:15 +00001; RUN: llc -mtriple=riscv64-unknown-linux-gnu < %s | FileCheck %s
2
3; Make sure that boolean immediates are properly (zero) extended.
4; CHECK: TEST 42 + 1 - .
5
6target triple = "riscv64-unknown-linux-gnu"
7
8define i32 @foo() #0 {
9entry:
10 tail call void asm sideeffect "#TEST 42 + ${0:c} - .\0A\09", "i,~{dirflag},~{fpsr},~{flags}"(i1 true) #0
11 ret i32 1
12}
13
14attributes #0 = { nounwind }