mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
6ebecc6ef5
This patch enables combining integer bitcasts of integer build vectors when the new scalar type is legal. I've avoided floating point because the implementation bitcasts float to int along the way and we would need to check the intermediate types for legality Differential Revision: https://reviews.llvm.org/D58884 llvm-svn: 355324
15 lines
431 B
LLVM
15 lines
431 B
LLVM
; Verify ReplaceExtractVectorEltOfLoadWithNarrowedLoad fixes
|
|
;
|
|
; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s
|
|
|
|
; Test a memory copy of a v2i32 (via the constant pool).
|
|
define void @f1(<2 x i32> *%dest) {
|
|
; CHECK-LABEL: f1:
|
|
; CHECK: llihf [[REG:%r[0-5]]], 1000000
|
|
; CHECK: oilf [[REG]], 99999
|
|
; CHECK: stg [[REG]], 0(%r2)
|
|
; CHECK: br %r14
|
|
store <2 x i32> <i32 1000000, i32 99999>, <2 x i32> *%dest
|
|
ret void
|
|
}
|