brintos

brintos / llvm-project-archived public Read only

0
0
Text · 489 B · e3d457d Raw
16 lines · plain
1; RUN: llc -mtriple=riscv32 -filetype=obj < %s\2; RUN: | llvm-objdump --triple=riscv32 --mattr=+c -d -M no-aliases -\3; RUN: | FileCheck -check-prefix=CHECK %s4 5; This test demonstrates that .option norvc has no effect on codegen when6; emitting an ELF directly.7 8define i32 @add(i32 %a, i32 %b) nounwind {9; CHECK-LABEL: <add>:10; CHECK:    add a0, a1, a011; CHECK-NEXT:    jalr zero, 0x0(ra)12  tail call void asm sideeffect ".option rvc", ""()13  %add = add nsw i32 %b, %a14  ret i32 %add15}16