1 ; RUN: llc %s -O0 -march=sparc -mcpu=leon2 -o - | FileCheck %s
\r
2 ; RUN: llc %s -O0 -march=sparc -mcpu=leon3 -o - | FileCheck %s
\r
3 ; RUN: llc %s -O0 -march=sparc -mcpu=leon4 -o - | FileCheck %s
\r
5 ; CHECK-LABEL: smac_test:
\r
6 ; CHECK: smac %o1, %o0, %o0
\r
7 define i32 @smac_test(i16* %a, i16* %b) {
\r
9 ; %0 = tail call i32 asm sideeffect "smac $2, $1, $0", "={r2},{r3},{r4}"(i16* %a, i16* %b)
\r
10 %0 = tail call i32 asm sideeffect "smac $2, $1, $0", "=r,rI,r"(i16* %a, i16* %b)
\r
14 ; CHECK-LABEL: umac_test:
\r
15 ; CHECK: umac %o1, %o0, %o0
\r
16 define i32 @umac_test(i16* %a, i16* %b) {
\r
18 %0 = tail call i32 asm sideeffect "umac $2, $1, $0", "=r,rI,r"(i16* %a, i16* %b)
\r