1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc --mtriple=loongarch32 --verify-machineinstrs < %s | FileCheck %s
3 ; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s | FileCheck %s
5 define i32 @modifier_z_zero(i32 %a) nounwind {
6 ; CHECK-LABEL: modifier_z_zero:
9 ; CHECK-NEXT: add.w $a0, $a0, $zero
12 %1 = tail call i32 asm "add.w $0, $1, ${2:z}", "=r,r,ri"(i32 %a, i32 0)
16 define i32 @modifier_z_nonzero(i32 %a) nounwind {
17 ; CHECK-LABEL: modifier_z_nonzero:
20 ; CHECK-NEXT: addi.w $a0, $a0, 1
23 %1 = tail call i32 asm "addi.w $0, $1, ${2:z}", "=r,r,ri"(i32 %a, i32 1)