brintos

brintos / llvm-project-archived public Read only

0
0
Text · 833 B · 2e0d95f Raw
27 lines · plain
1; RUN: llc -mtriple=hexagon < %s | FileCheck %s2 3; Test that %c works with immediates4; CHECK-LABEL: test_inlineasm_c_output_template05; CHECK: //TEST 426define dso_local i32 @test_inlineasm_c_output_template0() {7  tail call void asm sideeffect "//TEST ${0:c}", "i"(i32 42)8  ret i32 429}10 11; Test that %c works with global address12; CHECK-LABEL: test_inlineasm_c_output_template1:13; CHECK: TEST {{_?}}baz14@baz = internal global i32 0, align 415define dso_local i32 @test_inlineasm_c_output_template1() {16  tail call void asm sideeffect "//TEST ${0:c}", "i"(ptr nonnull @baz)17  ret i32 4318}19 20; Test that %n works with immediates21; CHECK-LABEL: test_inlineasm_c_output_template222; CHECK: //TEST -4223define dso_local i32 @test_inlineasm_c_output_template2() {24  tail call void asm sideeffect "//TEST ${0:n}", "i"(i32 42)25  ret i32 4226}27