Skip to content

Commit

Permalink
shrink bw in unit test to make it faster
Browse files Browse the repository at this point in the history
  • Loading branch information
nunoplopes committed Oct 30, 2023
1 parent b66d170 commit 756f799
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/alive-tv/memory/umul_overflow-fail.srctgt.ll
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

0 comments on commit 756f799

Please sign in to comment.