Mercurial > hg > CbC > CbC_llvm
comparison test/CodeGen/SPARC/LeonSMACUMACInstructionUT.ll @ 120:1172e4bd9c6f
update 4.0.0
author | mir3636 |
---|---|
date | Fri, 25 Nov 2016 19:14:25 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
101:34baf5011add | 120:1172e4bd9c6f |
---|---|
1 ; RUN: llc %s -O0 -march=sparc -mcpu=leon2 -o - | FileCheck %s | |
2 ; RUN: llc %s -O0 -march=sparc -mcpu=leon3 -o - | FileCheck %s | |
3 ; RUN: llc %s -O0 -march=sparc -mcpu=leon4 -o - | FileCheck %s | |
4 | |
5 ; CHECK-LABEL: smac_test: | |
6 ; CHECK: smac %o1, %o0, %o0 | |
7 define i32 @smac_test(i16* %a, i16* %b) { | |
8 entry: | |
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"(i16* %a, i16* %b) | |
11 ret i32 %0 | |
12 } | |
13 | |
14 ; CHECK-LABEL: umac_test: | |
15 ; CHECK: umac %o1, %o0, %o0 | |
16 define i32 @umac_test(i16* %a, i16* %b) { | |
17 entry: | |
18 %0 = tail call i32 asm sideeffect "umac $2, $1, $0", "=r,rI,r"(i16* %a, i16* %b) | |
19 ret i32 %0 | |
20 } |