16 lines · plain
1; Test that update_llc_test_checks.py can run pre-processing commands.2; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s --check-prefix=CHECK-ADD3; RUN: sed 's/add /sub /g' %s | llc -mtriple=x86_64-unknown-unknown \4; RUN: | FileCheck %s --check-prefix=CHECK-SUB5; Check that multiple pre-processing commands are handled6; RUN: sed 's/add /sub /g' %s | sed 's/i64 /i16 /g' | cat \7; RUN: | llc -mtriple=x86_64-unknown-unknown | FileCheck %s --check-prefix=CHECK-SUB-I168 9define i64 @test_add_constant(i64 %arg) nounwind {10entry:11 %a1 = add i64 %arg, 112 %a2 = add i64 %a1, 213 %a3 = add i64 %a2, 314 ret i64 %a315}16