mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 04:31:08 +00:00
[NVPTX] Add some extra tests for mul.wide to test non-power-of-two source types
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213794 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ce64168930
commit
2941802bad
@ -66,3 +66,25 @@ define i64 @mulwideu32(i32 %a, i32 %b) {
|
||||
%val2 = mul i64 %val0, %val1
|
||||
ret i64 %val2
|
||||
}
|
||||
|
||||
; OPT-LABEL: @mulwideu7
|
||||
; NOOPT-LABEL: @mulwideu7
|
||||
define i64 @mulwideu7(i7 %a, i7 %b) {
|
||||
; OPT: mul.wide.u32
|
||||
; NOOPT: mul.lo.s64
|
||||
%val0 = zext i7 %a to i64
|
||||
%val1 = zext i7 %b to i64
|
||||
%val2 = mul i64 %val0, %val1
|
||||
ret i64 %val2
|
||||
}
|
||||
|
||||
; OPT-LABEL: @mulwides7
|
||||
; NOOPT-LABEL: @mulwides7
|
||||
define i64 @mulwides7(i7 %a, i7 %b) {
|
||||
; OPT: mul.wide.s32
|
||||
; NOOPT: mul.lo.s64
|
||||
%val0 = sext i7 %a to i64
|
||||
%val1 = sext i7 %b to i64
|
||||
%val2 = mul i64 %val0, %val1
|
||||
ret i64 %val2
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user