brintos

brintos / llvm-project-archived public Read only

0
0
Text · 393 B · 7531514 Raw
14 lines · plain
1; RUN: llc -o %t.bc -filetype=obj -mtriple=lanai %s2; RUN: llvm-objdump -d -S %t.bc | FileCheck %s3 4;; Ensure that Lanai can be compiled using llc and then objdumped to5;; assembly. This is a smoke test to exercise the basics of the MC6;; implementation in Lanai.7 8; CHECK-LABEL: smoketest9; CHECK: st %fp, [--%sp]10define i32 @smoketest(i32 %x, i32 %y)  {11  %z = add i32 %x, %y12  ret i32 %z13}14