1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/test/CodeGen/PowerPC/future-check-features.ll
Victor Huang c2d91820e1 [PowerPC][Future] Add pld and pstd to future CPU
Add the prefixed instructions pld and pstd to future CPU. These are load and
store instructions that require new operand types that are 34 bits. This patch
adds the two instructions as well as the operand types required.

Note that this patch also makes a minor change to tablegen to account for the
fact that some instructions are going to require shifts greater than 31 bits
for the new 34 bit instructions.

Differential Revision: https://reviews.llvm.org/D72574
2020-01-28 08:23:29 -06:00

20 lines
639 B
LLVM

; RUN: llc -mattr=pcrelative-memops,prefix-instrs -verify-machineinstrs \
; RUN: -mtriple=powerpc64le-unknown-unknown -ppc-asm-full-reg-names \
; RUN: %s -o - 2>&1 | FileCheck %s
; RUN: llc -mattr=pcrelative-memops,prefix-instrs -verify-machineinstrs \
; RUN: -mtriple=powerpc64-unknown-unknown -ppc-asm-full-reg-names \
; RUN: %s -o - 2>&1 | FileCheck %s
define dso_local signext i32 @f() {
entry:
ret i32 0
}
; Make sure that all of the features listed are recognized.
; CHECK-NOT: is not a recognized feature for this target
; Make sure that the test was actually compiled.
; CHECK: li r3, 0
; CHECK-NEXT: blr