brintos

brintos / llvm-project-archived public Read only

0
0
Text · 830 B · 65115d4 Raw
27 lines · plain
1; RUN: llc -mtriple=bpfel-linux-gnu < %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_template113; 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 4218}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