-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shrink bw in unit test to make it faster
- Loading branch information
1 parent
b66d170
commit 756f799
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
define void @src(i32 %a, i32 %b, ptr %p) { | ||
%mul = call { i32, i1 } @llvm.umul.with.overflow.i32(i32 %a, i32 %b) | ||
store {i32, i1} %mul, ptr %p | ||
define void @src(i16 %a, i16 %b, ptr %p) { | ||
%mul = call { i16, i1 } @llvm.umul.with.overflow.i16(i16 %a, i16 %b) | ||
store {i16, i1} %mul, ptr %p | ||
ret void | ||
} | ||
|
||
define void @tgt(i32 %a, i32 %b, ptr %p) { | ||
%mul = call { i32, i1 } @llvm.smul.with.overflow.i32(i32 %a, i32 %b) | ||
store {i32, i1} %mul, ptr %p | ||
define void @tgt(i16 %a, i16 %b, ptr %p) { | ||
%mul = call { i16, i1 } @llvm.smul.with.overflow.i16(i16 %a, i16 %b) | ||
store {i16, i1} %mul, ptr %p | ||
ret void | ||
} | ||
|
||
; ERROR: Mismatch in memory | ||
declare { i32, i1 } @llvm.umul.with.overflow.i32(i32, i32) nounwind memory(none) willreturn | ||
declare { i32, i1 } @llvm.smul.with.overflow.i32(i32, i32) nounwind memory(none) willreturn | ||
declare { i16, i1 } @llvm.umul.with.overflow.i16(i16, i16) nounwind memory(none) willreturn | ||
declare { i16, i1 } @llvm.smul.with.overflow.i16(i16, i16) nounwind memory(none) willreturn |