mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
db43217a24
Currently we have a number of tests that fail with -verify-machineinstrs. To detect this cases earlier we add the option to the testcases with the exception of tests that will currently fail with this option. PR 27456 keeps track of this failures. No code review, as discussed with Hal Finkel. llvm-svn: 277624
44 lines
1.5 KiB
LLVM
44 lines
1.5 KiB
LLVM
; RUN: llc -verify-machineinstrs -mcpu=pwr8 -mtriple=powerpc64le-unknown-linux-gnu -mattr=+power8-vector < %s | FileCheck %s
|
|
|
|
define void @VPKUDUM_unary(<2 x i64>* %A) {
|
|
entry:
|
|
%tmp = load <2 x i64>, <2 x i64>* %A
|
|
%tmp2 = bitcast <2 x i64> %tmp to <4 x i32>
|
|
%tmp3 = extractelement <4 x i32> %tmp2, i32 0
|
|
%tmp4 = extractelement <4 x i32> %tmp2, i32 2
|
|
%tmp5 = insertelement <4 x i32> undef, i32 %tmp3, i32 0
|
|
%tmp6 = insertelement <4 x i32> %tmp5, i32 %tmp4, i32 1
|
|
%tmp7 = insertelement <4 x i32> %tmp6, i32 %tmp3, i32 2
|
|
%tmp8 = insertelement <4 x i32> %tmp7, i32 %tmp4, i32 3
|
|
%tmp9 = bitcast <4 x i32> %tmp8 to <2 x i64>
|
|
store <2 x i64> %tmp9, <2 x i64>* %A
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: @VPKUDUM_unary
|
|
; CHECK-NOT: vperm
|
|
; CHECK: vpkudum
|
|
|
|
define void @VPKUDUM(<2 x i64>* %A, <2 x i64>* %B) {
|
|
entry:
|
|
%tmp = load <2 x i64>, <2 x i64>* %A
|
|
%tmp2 = bitcast <2 x i64> %tmp to <4 x i32>
|
|
%tmp3 = load <2 x i64>, <2 x i64>* %B
|
|
%tmp4 = bitcast <2 x i64> %tmp3 to <4 x i32>
|
|
%tmp5 = extractelement <4 x i32> %tmp2, i32 0
|
|
%tmp6 = extractelement <4 x i32> %tmp2, i32 2
|
|
%tmp7 = extractelement <4 x i32> %tmp4, i32 0
|
|
%tmp8 = extractelement <4 x i32> %tmp4, i32 2
|
|
%tmp9 = insertelement <4 x i32> undef, i32 %tmp5, i32 0
|
|
%tmp10 = insertelement <4 x i32> %tmp9, i32 %tmp6, i32 1
|
|
%tmp11 = insertelement <4 x i32> %tmp10, i32 %tmp7, i32 2
|
|
%tmp12 = insertelement <4 x i32> %tmp11, i32 %tmp8, i32 3
|
|
%tmp13 = bitcast <4 x i32> %tmp12 to <2 x i64>
|
|
store <2 x i64> %tmp13, <2 x i64>* %A
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: @VPKUDUM
|
|
; CHECK-NOT: vperm
|
|
; CHECK: vpkudum
|