1; RUN: llc -mtriple=riscv32 -mattr=+c -filetype=obj < %s\ 2; RUN: | llvm-objdump -triple=riscv32 -mattr=+c -d -riscv-no-aliases -\ 3; RUN: | FileCheck -check-prefix=CHECK %s 4 5@ext = external global i32 6 7define i32 @compress_test(i32 %a) { 8; CHECK-LABEL: compress_test: 9; CHECK: c.add a0, a1 10; CHECK-NEXT: c.jr ra 11 %1 = load i32, i32* @ext 12 %2 = tail call i32 asm "add $0, $1, $2", "=r,r,r"(i32 %a, i32 %1) 13 ret i32 %2 14} 15 16