mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
24 lines
675 B
LLVM
24 lines
675 B
LLVM
; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux \
|
|
; RUN: -mcpu=g5 < %s | FileCheck %s
|
|
|
|
; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-freebsd \
|
|
; RUN: -mcpu=g5 < %s | FileCheck %s
|
|
|
|
; CHECK-LABEL: test_rol
|
|
; CHECK-NOT: spr
|
|
; CHECK-NOT: vrsave
|
|
; CHECK: vrlw
|
|
; CHECK-NEXT: blr
|
|
define <4 x i32> @test_rol() {
|
|
ret <4 x i32> < i32 -11534337, i32 -11534337, i32 -11534337, i32 -11534337 >
|
|
}
|
|
|
|
; CHECK-LABEL: test_arg
|
|
; CHECK-NOT: spr
|
|
; CHECK-NOT: vrsave
|
|
define <4 x i32> @test_arg(<4 x i32> %A, <4 x i32> %B) {
|
|
%C = add <4 x i32> %A, %B ; <<4 x i32>> [#uses=1]
|
|
ret <4 x i32> %C
|
|
}
|
|
|