1 ; RUN: llc -march=nvptx64 < %s | FileCheck %s
2 ; RUN: %if ptxas %{ llc -march=nvptx64 < %s | %ptxas-verify %}
4 ; Test that %c works with immediates
5 ; CHECK-LABEL: test_inlineasm_c_output_template0
7 define dso_local i32 @test_inlineasm_c_output_template0() {
8 tail call void asm sideeffect "//TEST ${0:c}", "i"(i32 42)
12 ; Test that %c works with global address
13 ; FIXME: seems this case isn't handled properly by
14 ; SelectionDAG TargetLowering::LowerAsmOperandForConstraint?
15 ; check: test_inlineasm_c_output_template1
17 ;@baz = internal global i32 0, align 4
18 ;define dso_local i32 @test_inlineasm_c_output_template1() {
19 ; tail call void asm sideeffect "//TEST ${0:c}", "i"(ptr nonnull @baz)
23 ; Test that %n works with immediates
24 ; CHECK-LABEL: test_inlineasm_c_output_template2
26 define dso_local i32 @test_inlineasm_c_output_template2() {
27 tail call void asm sideeffect "//TEST ${0:n}", "i"(i32 42)