1 ; RUN: llc -march=nvptx < %s | FileCheck %s
3 ; Test that %c works with immediates
4 ; CHECK-LABEL: test_inlineasm_c_output_template0
6 define dso_local i32 @test_inlineasm_c_output_template0() {
7 tail call void asm sideeffect "//TEST ${0:c}", "i"(i32 42)
11 ; Test that %c works with global address
12 ; FIXME: seems this case isn't handled properly by
13 ; SelectionDAG TargetLowering::LowerAsmOperandForConstraint?
14 ; check: test_inlineasm_c_output_template1
16 ;@baz = internal global i32 0, align 4
17 ;define dso_local i32 @test_inlineasm_c_output_template1() {
18 ; tail call void asm sideeffect "//TEST ${0:c}", "i"(i32* nonnull @baz)
22 ; Test that %n works with immediates
23 ; CHECK-LABEL: test_inlineasm_c_output_template2
25 define dso_local i32 @test_inlineasm_c_output_template2() {
26 tail call void asm sideeffect "//TEST ${0:n}", "i"(i32 42)