mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
5f15092063
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. llvm-svn: 308194
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
|
|
}
|
|
|