mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 16:36:40 +00:00
f289a718d2
DAGCombiner was hitting a SimpleType assertion when trying to combine a v3f32 before type legalization. bugzilla: https://bugs.llvm.org/show_bug.cgi?id=41916 Differential Revision: https://reviews.llvm.org/D62734 llvm-svn: 362365
18 lines
539 B
LLVM
18 lines
539 B
LLVM
; RUN: llc -mtriple=aarch64--linux-eabi %s -o - | FileCheck %s
|
|
|
|
; CHECK-LABEL: convert_v3f32
|
|
; CHECK: strb
|
|
; CHECK: strh
|
|
define void @convert_v3f32() {
|
|
entry:
|
|
br label %bb
|
|
|
|
bb:
|
|
%0 = shufflevector <4 x float> zeroinitializer, <4 x float> undef, <3 x i32> <i32 0, i32 1, i32 2>
|
|
%1 = fmul reassoc nnan ninf nsz contract afn <3 x float> %0, <float 2.550000e+02, float 2.550000e+02, float 2.550000e+02>
|
|
%2 = fptoui <3 x float> %1 to <3 x i8>
|
|
%3 = bitcast i8* undef to <3 x i8>*
|
|
store <3 x i8> %2, <3 x i8>* %3, align 1
|
|
ret void
|
|
}
|