1 ; RUN: llc -mtriple=aarch64-linux-gnu < %s | FileCheck %s
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 ; CHECK-LABEL: test_inlineasm_c_output_template1:
14 ; CHECK: TEST {{_?}}baz
15 @baz = internal global i32 0, align 4
16 define dso_local i32 @test_inlineasm_c_output_template1() {
17 tail call void asm sideeffect "//TEST ${0:c}", "i"(ptr nonnull @baz)
21 ; Test that %n works with immediates
22 ; CHECK-LABEL: test_inlineasm_c_output_template2
24 define dso_local i32 @test_inlineasm_c_output_template2() {
25 tail call void asm sideeffect "//TEST ${0:n}", "i"(i32 42)