mirror of
https://github.com/RPCS3/llvm.git
synced 2026-01-31 01:25:19 +01:00
This patch series adds support for the IBM z14 processor. This part includes: - Basic support for the new processor and its features. - Support for new instructions (except vector 32-bit float and 128-bit float). - CodeGen for new instructions, including new LLVM intrinsics. - Scheduler description for the new processor. - Detection of z14 as host processor. Support for the new 32-bit vector float and 128-bit vector float instructions is provided by separate patches. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308194 91177308-0d34-0410-b5e6-96231b3b80d8
25 lines
616 B
LLVM
25 lines
616 B
LLVM
; Test insertions of memory values into 0 on z14.
|
|
;
|
|
; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 | FileCheck %s
|
|
|
|
; Test VLLEZLF.
|
|
define <4 x i32> @f1(i32 *%ptr) {
|
|
; CHECK-LABEL: f1:
|
|
; CHECK: vllezlf %v24, 0(%r2)
|
|
; CHECK: br %r14
|
|
%val = load i32, i32 *%ptr
|
|
%ret = insertelement <4 x i32> zeroinitializer, i32 %val, i32 0
|
|
ret <4 x i32> %ret
|
|
}
|
|
|
|
; Test VLLEZLF with a float.
|
|
define <4 x float> @f2(float *%ptr) {
|
|
; CHECK-LABEL: f2:
|
|
; CHECK: vllezlf %v24, 0(%r2)
|
|
; CHECK: br %r14
|
|
%val = load float, float *%ptr
|
|
%ret = insertelement <4 x float> zeroinitializer, float %val, i32 0
|
|
ret <4 x float> %ret
|
|
}
|
|
|