mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-21 19:20:50 +00:00
add vector test to show missing transform
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275690 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bf11cc79f2
commit
713ceaf392
@ -33,6 +33,16 @@ define i15 @test3(i15 %x) {
|
||||
ret i15 %tmp.4
|
||||
}
|
||||
|
||||
; X + signbit --> X ^ signbit
|
||||
define <2 x i5> @test3vec(<2 x i5> %x) {
|
||||
; CHECK-LABEL: @test3vec(
|
||||
; CHECK-NEXT: [[Y:%.*]] = add <2 x i5> %x, <i5 -16, i5 -16>
|
||||
; CHECK-NEXT: ret <2 x i5> [[Y]]
|
||||
;
|
||||
%y = add <2 x i5> %x, <i5 16, i5 16>
|
||||
ret <2 x i5> %y
|
||||
}
|
||||
|
||||
;; (x & 0b1111..0) + 1 -> x | 1
|
||||
define i49 @test4(i49 %x) {
|
||||
; CHECK-LABEL: @test4(
|
||||
|
Loading…
x
Reference in New Issue
Block a user