brintos

brintos / llvm-project-archived public Read only

0
0
Text · 695 B · 73b16b6 Raw
21 lines · plain
1; RUN: llc %s -O0 -mtriple=sparc -mcpu=leon2 -o - | FileCheck %s2; RUN: llc %s -O0 -mtriple=sparc -mcpu=leon3 -o - | FileCheck %s3; RUN: llc %s -O0 -mtriple=sparc -mcpu=leon4 -o - | FileCheck %s4 5; CHECK-LABEL: smac_test:6; CHECK:       smac %i1, %i0, %i07define i32 @smac_test(ptr %a, ptr %b) {8entry:9;  %0 = tail call i32 asm sideeffect "smac $2, $1, $0", "={r2},{r3},{r4}"(i16* %a, i16* %b)10  %0 = tail call i32 asm sideeffect "smac $2, $1, $0", "=r,rI,r"(ptr %a, ptr %b)11  ret i32 %012}13 14; CHECK-LABEL: umac_test:15; CHECK:       umac %i1, %i0, %i016define i32 @umac_test(ptr %a, ptr %b) {17entry:18  %0 = tail call i32 asm sideeffect "umac $2, $1, $0", "=r,rI,r"(ptr %a, ptr %b)19  ret i32 %020}21