mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 23:42:52 +01:00
5d3a0ce4e5
another mechanical change accomplished though the power of terrible Perl scripts. I have manually switched some "s to 's to make escaping simpler. While I started this to fix tests that aren't run in all configurations, the massive number of tests is due to a really frustrating fragility of our testing infrastructure: things like 'grep -v', 'not grep', and 'expected failures' can mask broken tests all too easily. Essentially, I'm deeply disturbed that I can change the testsuite so radically without causing any change in results for most platforms. =/ llvm-svn: 159547
33 lines
846 B
LLVM
33 lines
846 B
LLVM
; XFAIL: *
|
|
; fixme rev16 pattern is not matching
|
|
|
|
; RUN: llc < %s -march=thumb -mattr=+thumb2 | grep "rev16\W*r[0-9]*,\W*r[0-9]*" | count 1
|
|
|
|
; 0xff00ff00 = 4278255360
|
|
; 0x00ff00ff = 16711935
|
|
define i32 @f1(i32 %a) {
|
|
%l8 = shl i32 %a, 8
|
|
%r8 = lshr i32 %a, 8
|
|
%mask_l8 = and i32 %l8, 4278255360
|
|
%mask_r8 = and i32 %r8, 16711935
|
|
%tmp = or i32 %mask_l8, %mask_r8
|
|
ret i32 %tmp
|
|
}
|
|
|
|
; 0xff000000 = 4278190080
|
|
; 0x00ff0000 = 16711680
|
|
; 0x0000ff00 = 65280
|
|
; 0x000000ff = 255
|
|
define i32 @f2(i32 %a) {
|
|
%l8 = shl i32 %a, 8
|
|
%r8 = lshr i32 %a, 8
|
|
%masklo_l8 = and i32 %l8, 65280
|
|
%maskhi_l8 = and i32 %l8, 4278190080
|
|
%masklo_r8 = and i32 %r8, 255
|
|
%maskhi_r8 = and i32 %r8, 16711680
|
|
%tmp1 = or i32 %masklo_l8, %masklo_r8
|
|
%tmp2 = or i32 %maskhi_l8, %maskhi_r8
|
|
%tmp = or i32 %tmp1, %tmp2
|
|
ret i32 %tmp
|
|
}
|