mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-25 04:39:51 +00:00
For PR1319:
Remove && from the end of the lines to prevent tests from throwing run lines into the background. Also, clean up places where the same command is run multiple times by using a temporary file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36142 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
725aed3407
commit
eb1d74e0c8
@ -1,6 +1,6 @@
|
||||
; A very rudimentary test on AliasAnalysis::getModRefInfo.
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: opt -print-all-alias-modref-info -aa-eval -disable-output |&
|
||||
; RUN: opt -print-all-alias-modref-info -aa-eval -disable-output |& \
|
||||
; RUN: not grep NoModRef
|
||||
|
||||
int %callee() {
|
||||
|
@ -1,7 +1,8 @@
|
||||
; This testcase was incorrectly computing that the loopentry.7 loop was
|
||||
; not a child of the loopentry.6 loop.
|
||||
;
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -analyze -loops | grep "^ Loop Containing: %loopentry.7"
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -analyze -loops | \
|
||||
; RUN: grep {^ Loop Containing: %loopentry.7}
|
||||
|
||||
void %getAndMoveToFrontDecode() { ; No predecessors!
|
||||
br label %endif.2
|
||||
|
@ -1,4 +1,4 @@
|
||||
; Found by inspection of the code
|
||||
; RUN: llvm-as < %s > /dev/null |& grep "Logical operator requires integral"
|
||||
; RUN: llvm-as < %s > /dev/null |& grep {Logical operator requires integral}
|
||||
|
||||
global i32 ashr (float 1.0, float 2.0)
|
||||
|
@ -1,4 +1,4 @@
|
||||
; Found by inspection of the code
|
||||
; RUN: llvm-as < %s > /dev/null |& grep "Illegal number of init"
|
||||
; RUN: llvm-as < %s > /dev/null |& grep {Illegal number of init}
|
||||
|
||||
global {} { i32 7, float 1.0, i32 7, i32 8 }
|
||||
|
@ -1,4 +1,4 @@
|
||||
// RUN: %llvmgcc -xc++ -S -o - %s | grep "struct.X::Y"
|
||||
// RUN: %llvmgcc -xc++ -S -o - %s | grep {struct.X::Y}
|
||||
struct X {
|
||||
|
||||
struct Y {
|
||||
|
@ -1,5 +1,5 @@
|
||||
// RUN: %llvmgcc %s -g -S -o - | llvm-as | opt -std-compile-opts | \
|
||||
// RUN: llvm-dis | grep "test/CFrontend"
|
||||
// RUN: llvm-dis | grep {test/CFrontend}
|
||||
// PR676
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm | not grep "add.*#0"
|
||||
; RUN: llvm-as < %s | llc -march=arm | not grep {add.*#0}
|
||||
|
||||
define i32 @foo() {
|
||||
entry:
|
||||
|
@ -1,4 +1,5 @@
|
||||
; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin -relocation-model=pic | not grep "LPC9"
|
||||
; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin -relocation-model=pic | \
|
||||
; RUN: not grep LPC9
|
||||
|
||||
%struct.B = type { i32 }
|
||||
%struct.anon = type { void (%struct.B*)*, i32 }
|
||||
|
@ -1,6 +1,7 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mtriple=arm-linux-gnu | grep "mov r11, sp" &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mtriple=arm-linux-gnu | grep "mov sp, r11"
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mtriple=arm-linux-gnu | \
|
||||
; RUN: grep {mov r11, sp}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mtriple=arm-linux-gnu | \
|
||||
; RUN: grep {mov sp, r11}
|
||||
|
||||
void %f(uint %a) {
|
||||
entry:
|
||||
|
@ -1,10 +1,11 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm &&
|
||||
; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnueabi | grep "mov r0, r2" | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep "mov r0, r1" | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnueabi | \
|
||||
; RUN: grep {mov r0, r2} | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | \
|
||||
; RUN: grep {mov r0, r1} | wc -l | grep 1
|
||||
|
||||
define i32 @f(i32 %a, i64 %b) {
|
||||
%tmp = call i32 @g(i64 %b)
|
||||
ret i32 %tmp
|
||||
}
|
||||
|
||||
declare i32 @g(i64)
|
||||
declare i32 @g(i64)
|
||||
|
@ -1,9 +1,9 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep and | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep orr | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep eor | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep mov.*lsl | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep mov.*asr | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=arm > %t
|
||||
; RUN: grep and %t | wc -l | grep 1
|
||||
; RUN: grep orr %t | wc -l | grep 1
|
||||
; RUN: grep eor %t | wc -l | grep 1
|
||||
; RUN: grep mov.*lsl %t | wc -l | grep 1
|
||||
; RUN: grep mov.*asr %t | wc -l | grep 1
|
||||
|
||||
define i32 @f1(i32 %a, i32 %b) {
|
||||
entry:
|
||||
|
@ -1,8 +1,8 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep bne &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep bge &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep bhs &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep blo
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm > %t
|
||||
; RUN: grep bne %t
|
||||
; RUN: grep bge %t
|
||||
; RUN: grep bhs %t
|
||||
; RUN: grep blo %t
|
||||
|
||||
void %f1(int %a, int %b, int* %v) {
|
||||
entry:
|
||||
|
@ -1,5 +1,5 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm &&
|
||||
; RUN: llvm-as < %s | llc -march=arm -mtriple=arm-linux-gnueabi | not grep "bx lr"
|
||||
; RUN: llvm-as < %s | llc -march=arm -mtriple=arm-linux-gnueabi | \
|
||||
; RUN: not grep {bx lr}
|
||||
|
||||
%struct.anon = type { i32 (i32, i32, i32)*, i32, i32, [3 x i32], i8*, i8*, i8* }
|
||||
@r = external global [14 x i32] ; <[14 x i32]*> [#uses=4]
|
||||
|
@ -1,5 +1,4 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v5t | grep "clz"
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v5t | grep clz
|
||||
|
||||
declare uint %llvm.ctlz.i32(uint)
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6,+vfp2 | grep fcmpes
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6,+vfp2 | \
|
||||
; RUN: grep fcmpes
|
||||
|
||||
void %test3(float* %glob, int %X) {
|
||||
entry:
|
||||
|
@ -1,11 +1,17 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "mov r0, #0" | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "mov r0, #255$" | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "mov r0.*256" | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "orr.*256" | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "mov r0, .*-1073741761" | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "mov r0, .*1008" | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "cmp r0, #1, 16" | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
|
||||
; RUN: grep {mov r0, #0} | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
|
||||
; RUN: grep {mov r0, #255$} | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
|
||||
; RUN: grep {mov r0.*256} | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
|
||||
; RUN: grep {orr.*256} | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
|
||||
; RUN: grep {mov r0, .*-1073741761} | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
|
||||
; RUN: grep {mov r0, .*1008} | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
|
||||
; RUN: grep {cmp r0, #1, 16} | wc -l | grep 1
|
||||
|
||||
uint %f1() {
|
||||
ret uint 0
|
||||
|
@ -1,8 +1,8 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep __divsi3 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep __udivsi3 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep __modsi3 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep __umodsi3
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm > %t
|
||||
; RUN: grep __divsi3 %t
|
||||
; RUN: grep __udivsi3 %t
|
||||
; RUN: grep __modsi3 %t
|
||||
; RUN: grep __umodsi3 %t
|
||||
|
||||
int %f1(int %a, int %b) {
|
||||
entry:
|
||||
|
@ -1,7 +1,7 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm &&
|
||||
; RUN: llvm-as < %s | llc -march=thumb &&
|
||||
; RUN: llvm-as < %s | llc -march=thumb | not grep "ldr sp" &&
|
||||
; RUN: llvm-as < %s | llc -mtriple=thumb-apple-darwin | not grep "sub.*r7" &&
|
||||
; RUN: llvm-as < %s | llc -march=arm
|
||||
; RUN: llvm-as < %s | llc -march=thumb | not grep {ldr sp}
|
||||
; RUN: llvm-as < %s | llc -mtriple=thumb-apple-darwin | \
|
||||
; RUN: not grep {sub.*r7}
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep 4294967280
|
||||
|
||||
%struct.state = type { i32, %struct.info*, float**, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, i8* }
|
||||
|
@ -1,7 +1,6 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep bic | wc -l | grep 2 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm -mattr=+v6,+vfp2 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm -mattr=+v6,+vfp2 | grep fneg | wc -l | grep 2
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep bic | wc -l | grep 2
|
||||
; RUN: llvm-as < %s | llc -march=arm -mattr=+v6,+vfp2 | \
|
||||
; RUN: grep fneg | wc -l | grep 2
|
||||
|
||||
define float @test1(float %x, double %y) {
|
||||
%tmp = fpext float %x to double
|
||||
|
@ -1,21 +1,15 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
|
||||
; RUN: grep fmsr | wc -l | grep 4
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
|
||||
; RUN: grep fsitos
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
|
||||
; RUN: grep fmrs
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
|
||||
; RUN: grep fsitod
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
|
||||
; RUN: grep fmrrd | wc -l | grep 5
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
|
||||
; RUN: grep fmdrr | wc -l | grep 2 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fldd
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep flds
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fuitod
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fuitos
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
|
||||
; RUN: grep 1065353216
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 > %t
|
||||
; RUN: grep fmsr %t | wc -l | grep 4
|
||||
; RUN: grep fsitos %t
|
||||
; RUN: grep fmrs %t
|
||||
; RUN: grep fsitod %t
|
||||
; RUN: grep fmrrd %t | wc -l | grep 5
|
||||
; RUN: grep fmdrr %t | wc -l | grep 2
|
||||
; RUN: grep fldd %t
|
||||
; RUN: grep flds %t
|
||||
; RUN: grep fuitod %t
|
||||
; RUN: grep fuitos %t
|
||||
; RUN: grep 1065353216 %t
|
||||
|
||||
float %f(int %a) {
|
||||
entry:
|
||||
|
@ -1,13 +1,12 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fadds &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep faddd &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fmuls &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fmuld &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fnegs &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fnegd &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fdivs &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fdivd
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 > %t
|
||||
; RUN: grep fadds %t
|
||||
; RUN: grep faddd %t
|
||||
; RUN: grep fmuls %t
|
||||
; RUN: grep fmuld %t
|
||||
; RUN: grep fnegs %t
|
||||
; RUN: grep fnegd %t
|
||||
; RUN: grep fdivs %t
|
||||
; RUN: grep fdivd %t
|
||||
|
||||
|
||||
float %f1(float %a, float %b) {
|
||||
|
@ -1,11 +1,11 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep movmi &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep moveq &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep movgt &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep movge &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep movne &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fcmped | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fcmpes | wc -l | grep 6
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 > %t
|
||||
; RUN: grep movmi %t
|
||||
; RUN: grep moveq %t
|
||||
; RUN: grep movgt %t
|
||||
; RUN: grep movge %t
|
||||
; RUN: grep movne %t
|
||||
; RUN: grep fcmped %t | wc -l | grep 1
|
||||
; RUN: grep fcmpes %t | wc -l | grep 6
|
||||
|
||||
int %f1(float %a) {
|
||||
entry:
|
||||
|
@ -1,5 +1,4 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep moveq &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep moveq
|
||||
; RUN: llvm-as < %s | llc -march=arm -mattr=+vfp2 | grep movvs
|
||||
|
||||
define i32 @f7(float %a, float %b) {
|
||||
|
@ -1,14 +1,14 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fcvtsd &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fcvtds &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep ftosizs &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep ftouizs &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep ftosizd &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep ftouizd &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fsitos &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fsitod &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fuitos &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep fuitod
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 > %t
|
||||
; RUN: grep fcvtsd %t
|
||||
; RUN: grep fcvtds %t
|
||||
; RUN: grep ftosizs %t
|
||||
; RUN: grep ftouizs %t
|
||||
; RUN: grep ftosizd %t
|
||||
; RUN: grep ftouizd %t
|
||||
; RUN: grep fsitos %t
|
||||
; RUN: grep fsitod %t
|
||||
; RUN: grep fuitos %t
|
||||
; RUN: grep fuitod %t
|
||||
|
||||
float %f1(double %x) {
|
||||
entry:
|
||||
|
@ -1,7 +1,9 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "mov r0, #0" | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep "flds.*\[" | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | grep "fsts.*\[" | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
|
||||
; RUN: grep {mov r0, #0} | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
|
||||
; RUN: grep {flds.*\\\[} | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
|
||||
; RUN: grep {fsts.*\\\[} | wc -l | grep 1
|
||||
|
||||
float %f1(float %a) {
|
||||
entry:
|
||||
|
@ -1,7 +1,7 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm &&
|
||||
; RUN: llvm-as < %s | llc -march=arm
|
||||
; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnueabi | grep mov | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnu --disable-fp-elim | grep mov \
|
||||
; RUN: | wc -l | grep 3
|
||||
; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnu --disable-fp-elim | \
|
||||
; RUN: grep mov | wc -l | grep 3
|
||||
; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep mov | wc -l | grep 2
|
||||
|
||||
@str = internal constant [12 x i8] c"Hello World\00"
|
||||
|
@ -1,4 +1,3 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | not grep CPI
|
||||
|
||||
int %test1(int %A) {
|
||||
|
@ -1,5 +1,6 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-apple-darwin -mattr=+v6 | grep mov | wc -l | grep 3
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-apple-darwin -mattr=+v6 |\
|
||||
; RUN: grep mov | wc -l | grep 3
|
||||
|
||||
int %test(int %x) {
|
||||
%tmp = cast int %x to short
|
||||
|
@ -1,7 +1,9 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "ldmia" | wc -l | grep 2 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "ldmib" | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-apple-darwin | grep "ldmfd sp\!" | wc -l | grep 3
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
|
||||
; RUN: grep ldmia | wc -l | grep 2
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
|
||||
; RUN: grep ldmib | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-apple-darwin | \
|
||||
; RUN: grep {ldmfd sp\!} | wc -l | grep 3
|
||||
|
||||
%X = external global [0 x int]
|
||||
|
||||
|
@ -1,12 +1,11 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep "ldrb" | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep "ldrh" | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep "ldrsb" | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep "ldrsh" | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep "ldrb" | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep "ldrh" | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep "ldrsb" | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep "ldrsh" | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep ldrb | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep ldrh | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep ldrsb | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep ldrsh | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep ldrb | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep ldrh | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep ldrsb | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep ldrsh | wc -l | grep 1
|
||||
|
||||
define i32 @test1(i8* %v.pntr.s0.u1) {
|
||||
%tmp.u = load i8* %v.pntr.s0.u1
|
||||
|
@ -1,6 +1,4 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | not grep mov &&
|
||||
; RUN: llvm-as < %s | llc -march=thumb &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | not grep mov
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep cpy | wc -l | grep 2
|
||||
|
||||
define i32 @f1() {
|
||||
|
@ -1,5 +1,5 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "ldr.*\!" | wc -l | grep 2
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
|
||||
; RUN: grep {ldr.*\\!} | wc -l | grep 2
|
||||
|
||||
int *%test1(int *%X, int *%dest) {
|
||||
%Y = getelementptr int* %X, int 4
|
||||
|
@ -1,8 +1,8 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep ldrsb &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep ldrb &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep ldrsh &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep ldrh
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm > %t
|
||||
; RUN: grep ldrsb %t
|
||||
; RUN: grep ldrb %t
|
||||
; RUN: grep ldrsh %t
|
||||
; RUN: grep ldrh %t
|
||||
|
||||
int %f1(sbyte* %p) {
|
||||
entry:
|
||||
|
@ -1,6 +1,4 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep cmp | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=thumb &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep cmp | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=thumb | grep cmp | wc -l | grep 1
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep rrx | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep __ashldi3 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep __ashrdi3 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep __lshrdi3 &&
|
||||
; RUN: llvm-as < %s | llc -march=thumb
|
||||
; RUN: llvm-as < %s | llc -march=arm > %t
|
||||
; RUN: grep rrx %t | wc -l | grep 1
|
||||
; RUN: grep __ashldi3 %t
|
||||
; RUN: grep __ashrdi3 %t
|
||||
; RUN: grep __lshrdi3 %t
|
||||
|
||||
define i64 @f0(i64 %A, i64 %B) {
|
||||
%tmp = bitcast i64 %A to i64
|
||||
|
@ -1,5 +1,5 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6 | \
|
||||
; RUN: grep pkhbt | wc -l | grep 5 &&
|
||||
; RUN: grep pkhbt | wc -l | grep 5
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6 | \
|
||||
; RUN: grep pkhtb | wc -l | grep 4
|
||||
; END.
|
||||
|
@ -1,4 +1,3 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-linux
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-linux | \
|
||||
; RUN: grep {__DTOR_END__:}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-linux | \
|
||||
|
@ -7,7 +7,7 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
|
||||
; RUN: grep fuito | wc -l | grep 2
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
|
||||
; RUN: grep fto.i | wc -l | grep 4 &&
|
||||
; RUN: grep fto.i | wc -l | grep 4
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
|
||||
; RUN: grep bmi | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
|
||||
|
@ -1,5 +1,4 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep .weak.*f &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep .weak.*f
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep .weak.*h
|
||||
|
||||
implementation ; Functions:
|
||||
|
@ -1,9 +1,9 @@
|
||||
; RUN: llvm-upgrade %s | llvm-as | llc -sched=none &&
|
||||
; RUN: llvm-upgrade %s | llvm-as | llc -sched=default &&
|
||||
; RUN: llvm-upgrade %s | llvm-as | llc -sched=simple &&
|
||||
; RUN: llvm-upgrade %s | llvm-as | llc -sched=simple-noitin &&
|
||||
; RUN: llvm-upgrade %s | llvm-as | llc -sched=list-td &&
|
||||
; RUN: llvm-upgrade %s | llvm-as | llc -sched=list-tdrr &&
|
||||
; RUN: llvm-upgrade %s | llvm-as | llc -sched=none
|
||||
; RUN: llvm-upgrade %s | llvm-as | llc -sched=default
|
||||
; RUN: llvm-upgrade %s | llvm-as | llc -sched=simple
|
||||
; RUN: llvm-upgrade %s | llvm-as | llc -sched=simple-noitin
|
||||
; RUN: llvm-upgrade %s | llvm-as | llc -sched=list-td
|
||||
; RUN: llvm-upgrade %s | llvm-as | llc -sched=list-tdrr
|
||||
; RUN: llvm-upgrade %s | llvm-as | llc -sched=list-burr
|
||||
; PR859
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep adc
|
||||
|
||||
; PR987
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llvm-as < %s | llc -march=x86 | grep 8388635 &&
|
||||
; RUN: llvm-as < %s | llc -march=x86 | grep 8388635
|
||||
; RUN: llvm-as < %s | llc -march=x86-64 | grep 4294981120
|
||||
; PR 1325
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llvm-as < %s | llc &&
|
||||
; RUN: llvm-as < %s | llc
|
||||
; RUN: llvm-as < %s | llc -march=x86 -mcpu=i386
|
||||
|
||||
; PR1239
|
||||
|
@ -1,12 +1,13 @@
|
||||
; RUN: llvm-as < %s | llc -march=x86 -o - | grep jb | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=x86 -o - | grep \$6 | wc -l | grep 2 &&
|
||||
; RUN: llvm-as < %s | llc -march=x86 -o - | grep 1024 | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=x86 -o - | grep 1023 | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=x86 -o - | grep 119 | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=x86 -o - | grep JTI | wc -l | grep 2 &&
|
||||
; RUN: llvm-as < %s | llc -march=x86 -o - | grep jg | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=x86 -o - | grep ja | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=x86 -o - | grep js | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=x86 -o %t -f
|
||||
; RUN: grep jb %t | wc -l | grep 1
|
||||
; RUN: grep \\\$6 %t | wc -l | grep 2
|
||||
; RUN: grep 1024 %t | wc -l | grep 1
|
||||
; RUN: grep 1023 %t | wc -l | grep 1
|
||||
; RUN: grep 119 %t | wc -l | grep 1
|
||||
; RUN: grep JTI %t | wc -l | grep 2
|
||||
; RUN: grep jg %t | wc -l | grep 1
|
||||
; RUN: grep ja %t | wc -l | grep 1
|
||||
; RUN: grep js %t | wc -l | grep 1
|
||||
|
||||
target triple = "i686-pc-linux-gnu"
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
; RUN: llvm-as < %s | llc -march=x86 -o - | grep \$7 | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=x86 -o - | grep \$6 | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=x86 -o - | grep 1024 | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=x86 -o - | grep jb | wc -l | grep 2 &&
|
||||
; RUN: llvm-as < %s | llc -march=x86 -o - | grep \$7 | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=x86 -o - | grep \$6 | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=x86 -o - | grep 1024 | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=x86 -o - | grep jb | wc -l | grep 2
|
||||
; RUN: llvm-as < %s | llc -march=x86 -o - | grep je | wc -l | grep 1
|
||||
|
||||
define i32 @main(i32 %tmp158) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | grep test: &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | not grep vperm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | grep test:
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | not grep vperm
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc
|
||||
|
||||
void %test(<4 x float> *%tmp2.i) {
|
||||
|
@ -1,9 +1,9 @@
|
||||
; Test that vectors are scalarized/lowered correctly.
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple a-b-c &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g3 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mcpu=i386 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple a-b-c
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g3
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mcpu=i386
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mcpu=yonah
|
||||
|
||||
%f1 = type <1 x float>
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | grep vsldoi &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | grep vsldoi
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | not grep vor
|
||||
|
||||
<4 x float> %func(<4 x float> %fp0, <4 x float> %fp1) {
|
||||
|
@ -1,4 +1,3 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep IMPLICIT_DEF
|
||||
|
||||
void %foo(long %X) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc
|
||||
|
||||
void %bitap() {
|
||||
|
@ -1,5 +1,5 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc
|
||||
|
||||
%qsz.b = external global bool ; <bool*> [#uses=1]
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | grep extsb &&
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | grep extsb
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | grep extsh
|
||||
|
||||
define i32 @p1(i8 %c, i16 %s) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 &&
|
||||
; RUN: llvm-as < %s | llc -march=ppc32
|
||||
; RUN: llvm-as < %s | llc -march=ppc64
|
||||
|
||||
define i16 @test(i8* %d1, i16* %d2) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 &&
|
||||
; RUN: llvm-as < %s | llc -march=ppc32
|
||||
; RUN: llvm-as < %s | llc -march=ppc64
|
||||
|
||||
; Test two things: 1) that a frameidx can be rewritten in an inline asm
|
||||
|
@ -1,9 +1,10 @@
|
||||
; All of these should be codegen'd without loading immediates
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep addc | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep adde | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep addze | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep addme | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep addic | wc -l | grep 2
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -o %t -f
|
||||
; RUN: grep addc %t | wc -l | grep 1
|
||||
; RUN: grep adde %t | wc -l | grep 1
|
||||
; RUN: grep addze %t | wc -l | grep 1
|
||||
; RUN: grep addme %t | wc -l | grep 1
|
||||
; RUN: grep addic %t | wc -l | grep 2
|
||||
|
||||
implementation ; Functions:
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep addi
|
||||
|
||||
%struct.X = type { [5 x sbyte] }
|
||||
|
@ -1,6 +1,9 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep "align.4" | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep "align.2" | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep "align.3" | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
|
||||
; RUN: grep align.4 | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
|
||||
; RUN: grep align.2 | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
|
||||
; RUN: grep align.3 | wc -l | grep 1
|
||||
|
||||
|
||||
%A = global <4 x uint> < uint 10, uint 20, uint 30, uint 40 >
|
||||
|
@ -1,4 +1,3 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep mfcr
|
||||
|
||||
void %foo(int %X, int %Y, int %Z) {
|
||||
|
@ -1,4 +1,3 @@
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 &&
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | not grep rlwin
|
||||
|
||||
define void @test(i8* %P) {
|
||||
|
@ -1,6 +1,7 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep slwi &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep addi &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep rlwinm
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -o %t -f
|
||||
; RUN: grep slwi %t
|
||||
; RUN: not grep addi %t
|
||||
; RUN: not grep rlwinm %t
|
||||
|
||||
int %test(int %A) {
|
||||
%B = mul int %A, 8 ;; shift
|
||||
|
@ -1,6 +1,5 @@
|
||||
; These tests should not contain a sign extend.
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 &&
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | not grep extsh &&
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | not grep extsh
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | not grep extsb
|
||||
|
||||
define i32 @test1(i32 %mode.0.i.0) {
|
||||
|
@ -1,8 +1,12 @@
|
||||
; There should be exactly one vxor here.
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 --enable-unsafe-fp-math | grep vxor | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mcpu=g5 --enable-unsafe-fp-math | \
|
||||
; RUN: grep vxor | wc -l | grep 1
|
||||
|
||||
; There should be exactly one vsplti here.
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 --enable-unsafe-fp-math | grep vsplti | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mcpu=g5 --enable-unsafe-fp-math | \
|
||||
; RUN: grep vsplti | wc -l | grep 1
|
||||
|
||||
|
||||
void %VXOR(<4 x float>* %P1, <4 x int>* %P2, <4 x float>* %P3) {
|
||||
|
@ -1,4 +1,3 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep mfcr
|
||||
|
||||
void %test(long %X) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep srawi &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep srawi
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep blr
|
||||
|
||||
int %test1(int %X) {
|
||||
|
@ -1,8 +1,13 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep eqv | wc -l | grep 3 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | grep andc | wc -l | grep 3 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep orc | wc -l | grep 2 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | grep nor | wc -l | grep 3 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep nand | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
|
||||
; RUN: grep eqv | wc -l | grep 3
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | \
|
||||
; RUN: grep andc | wc -l | grep 3
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
|
||||
; RUN: grep orc | wc -l | grep 2
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | \
|
||||
; RUN: grep nor | wc -l | grep 3
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
|
||||
; RUN: grep nand | wc -l | grep 1
|
||||
|
||||
int %EQV1(int %X, int %Y) {
|
||||
%A = xor int %X, %Y
|
||||
|
@ -1,5 +1,5 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep -v align | not grep li
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
|
||||
; RUN: grep -v align | not grep li
|
||||
|
||||
;; Test that immediates are folded into these instructions correctly.
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | not grep r1
|
||||
|
||||
double %test1(double %X) {
|
||||
|
@ -1,4 +1,3 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep fmr
|
||||
|
||||
double %test(float %F) {
|
||||
|
@ -1,4 +1,3 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep mr
|
||||
|
||||
int %test(int %Y, int %X) {
|
||||
|
@ -1,5 +1,4 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep xori &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep xori
|
||||
|
||||
int %test(bool %B, int* %P) {
|
||||
br bool %B, label %T, label %F
|
||||
|
@ -1,5 +1,5 @@
|
||||
; Should fold the ori into the lfs.
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep lfs &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep lfs
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep ori
|
||||
|
||||
float %test() {
|
||||
|
@ -1,7 +1,7 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -enable-ppc-preinc &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -enable-ppc-preinc | not grep addi &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -enable-ppc-preinc &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -enable-ppc-preinc | not grep addi
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -enable-ppc-preinc | \
|
||||
; RUN: not grep addi
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -enable-ppc-preinc | \
|
||||
; RUN: not grep addi
|
||||
%Glob = global ulong 4
|
||||
|
||||
int *%test0(int *%X, int *%dest) {
|
||||
|
@ -1,4 +1,3 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep mul
|
||||
|
||||
int %test1(int %a) {
|
||||
|
@ -1,8 +1,9 @@
|
||||
; All of these ands and shifts should be folded into rlwimi's
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep mulhwu &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep srawi &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep add &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep mulhw | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -o %t -f
|
||||
; RUN: not grep mulhwu %t
|
||||
; RUN: not grep srawi %t
|
||||
; RUN: not grep add %t
|
||||
; RUN: grep mulhw %t | wc -l | grep 1
|
||||
|
||||
implementation ; Functions:
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc | not grep ori &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc | not grep ori
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc | not grep rlwimi
|
||||
|
||||
int %test1(sbyte* %P) { ;; or -> lwzx
|
||||
|
@ -1,4 +1,3 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep or
|
||||
|
||||
%struct.foo = type { int, int, [0 x ubyte] }
|
||||
|
@ -1,5 +1,5 @@
|
||||
; All of these ands and shifts should be folded into rlwimi's
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep and &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep and
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep rlwimi | wc -l | grep 8
|
||||
|
||||
implementation ; Functions:
|
||||
|
@ -1,7 +1,8 @@
|
||||
; All of these ands and shifts should be folded into rlwimi's
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep rlwimi | wc -l | grep 3 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep srwi | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep slwi
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -o %t -f
|
||||
; RUN: grep rlwimi %t | wc -l | grep 3
|
||||
; RUN: grep srwi %t | wc -l | grep 1
|
||||
; RUN: not grep slwi %t
|
||||
|
||||
implementation ; Functions:
|
||||
|
||||
|
@ -1,9 +1,10 @@
|
||||
; All of these ands and shifts should be folded into rlwimi's
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep and &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep srawi &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep srwi &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep slwi &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep rlwinm | wc -l | grep 8
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -o %t -f
|
||||
; RUN: not grep and %t
|
||||
; RUN: not grep srawi %t
|
||||
; RUN: not grep srwi %t
|
||||
; RUN: not grep slwi %t
|
||||
; RUN: grep rlwinm %t | wc -l | grep 8
|
||||
|
||||
implementation ; Functions:
|
||||
|
||||
|
@ -1,10 +1,11 @@
|
||||
; All of these ands and shifts should be folded into rlw[i]nm instructions
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | not grep and &&
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | not grep srawi &&
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | not grep srwi &&
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | not grep slwi &&
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | grep rlwnm | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | grep rlwinm | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 -o %t -f
|
||||
; RUN: not grep and %t
|
||||
; RUN: not grep srawi %t
|
||||
; RUN: not grep srwi %t
|
||||
; RUN: not grep slwi %t
|
||||
; RUN: grep rlwnm %t | wc -l | grep 1
|
||||
; RUN: grep rlwinm %t | wc -l | grep 1
|
||||
|
||||
define i32 @test1(i32 %X, i32 %Y) {
|
||||
entry:
|
||||
|
@ -1,5 +1,5 @@
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | grep rlwinm | wc -l | grep 4 &&
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | grep rlwnm | wc -l | grep 2 &&
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | grep rlwinm | wc -l | grep 4
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | grep rlwnm | wc -l | grep 2
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | not grep or
|
||||
|
||||
define i32 @rotl32(i32 %A, i8 %Amt) {
|
||||
|
@ -1,5 +1,4 @@
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | not grep or &&
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | grep rlwnm | wc -l | grep 2 &&
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | grep rlwnm | wc -l | grep 2
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | grep rlwinm | wc -l | grep 2
|
||||
|
||||
define i32 @rotlw(i32 %x, i32 %sh) {
|
||||
|
@ -1,7 +1,12 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=stfiwx | grep stfiwx &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=stfiwx | not grep r1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=-stfiwx | not grep stfiwx &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=-stfiwx | grep r1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=stfiwx -o %t1 -f
|
||||
; RUN: grep stfiwx %t1
|
||||
; RUN: not grep r1 %t1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=-stfiwx \
|
||||
; RUN: -o %t2 -f
|
||||
; RUN: not grep stfiwx %t2
|
||||
; RUN: grep r1 %t2
|
||||
|
||||
void %test(float %a, int* %b) {
|
||||
%tmp.2 = cast float %a to int
|
||||
|
@ -1,4 +1,3 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep lwz
|
||||
int %test(int* %P) {
|
||||
store int 1, int* %P
|
||||
|
@ -1,9 +1,10 @@
|
||||
; All of these should be codegen'd without loading immediates
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep subfc | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep subfe | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep subfze | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep subfme | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep subfic | wc -l | grep 2
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -o %t -f
|
||||
; RUN: grep subfc %t | wc -l | grep 1
|
||||
; RUN: grep subfe %t | wc -l | grep 1
|
||||
; RUN: grep subfze %t | wc -l | grep 1
|
||||
; RUN: grep subfme %t | wc -l | grep 1
|
||||
; RUN: grep subfic %t | wc -l | grep 2
|
||||
implementation ; Functions:
|
||||
|
||||
long %sub_ll(long %a, long %b) {
|
||||
|
@ -1,5 +1,6 @@
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | grep fmul | wc -l | grep 2 &&
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 -enable-unsafe-fp-math | grep fmul | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | grep fmul | wc -l | grep 2
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 -enable-unsafe-fp-math | \
|
||||
; RUN: grep fmul | wc -l | grep 1
|
||||
|
||||
define double @foo(double %X) {
|
||||
%tmp1 = mul double %X, 1.23
|
||||
|
@ -1,5 +1,6 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | grep vcmpeqfp. &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | not grep mfcr
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 -o %t -f
|
||||
; RUN: grep vcmpeqfp. %t
|
||||
; RUN: not grep mfcr %t
|
||||
|
||||
; A predicate compare used immediately by a branch should not generate an mfcr.
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | not grep CPI
|
||||
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | not grep mullw &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | not grep mullw
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | grep vmsumuhm
|
||||
|
||||
<4 x int> %test_v4i32(<4 x int>* %X, <4 x int>* %Y) {
|
||||
|
@ -1,4 +1,3 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | not grep vperm
|
||||
|
||||
<4 x float> %test_uu72(<4 x float> *%P1, <4 x float> *%P2) {
|
||||
|
@ -1,9 +1,11 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llc -march=ppc32 -mcpu=g5 | not grep vperm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | grep vsldoi | wc -l | grep 2 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | grep vmrgh | wc -l | grep 7 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | grep vmrgl | wc -l | grep 6 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | grep vpkuhum | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | grep vpkuwum | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | \
|
||||
; RUN: llc -march=ppc32 -mcpu=g5 | not grep vperm
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 > %t
|
||||
; RUN: grep vsldoi %t | wc -l | grep 2
|
||||
; RUN: grep vmrgh %t | wc -l | grep 7
|
||||
; RUN: grep vmrgl %t | wc -l | grep 6
|
||||
; RUN: grep vpkuhum %t | wc -l | grep 1
|
||||
; RUN: grep vpkuwum %t | wc -l | grep 1
|
||||
|
||||
void %VSLDOI_xy(<8 x short>* %A, <8 x short>* %B) {
|
||||
entry:
|
||||
|
@ -1,8 +1,10 @@
|
||||
; Test that vectors are scalarized/lowered correctly.
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | grep vspltw | wc -l | grep 2 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g3 | grep stfs | wc -l | grep 4 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | grep vsplti | wc -l | grep 3 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | grep vsplth | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g3 | \
|
||||
; RUN: grep stfs | wc -l | grep 4
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 -o %t -f
|
||||
; RUN: grep vspltw %t | wc -l | grep 2
|
||||
; RUN: grep vsplti %t | wc -l | grep 3
|
||||
; RUN: grep vsplth %t | wc -l | grep 1
|
||||
|
||||
%f4 = type <4 x float>
|
||||
%i4 = type <4 x int>
|
||||
|
@ -1,6 +1,7 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | grep vrlw &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | not grep spr &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | not grep vrsave
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 -o %t -f
|
||||
; RUN: grep vrlw %t
|
||||
; RUN: not grep spr %t
|
||||
; RUN: not grep vrsave %t
|
||||
|
||||
<4 x int> %test_rol() {
|
||||
ret <4 x int> < int -11534337, int -11534337, int -11534337, int -11534337 >
|
||||
|
@ -1,7 +1,9 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=sparc -mattr=-v9 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=sparc -mattr=v9 -enable-sparc-v9-insts &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=sparc -mattr=-v9 | not grep popc &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=sparc -mattr=v9 -enable-sparc-v9-insts | grep popc
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=sparc -mattr=v9 -enable-sparc-v9-insts
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=sparc -mattr=-v9 | \
|
||||
; RUN: not grep popc
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=sparc -mattr=v9 -enable-sparc-v9-insts | grep popc
|
||||
|
||||
declare uint %llvm.ctpop.i32(uint)
|
||||
uint %test(uint %X) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=sparc &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=sparc | grep xnor | wc -l | grep 2
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=sparc | \
|
||||
; RUN: grep xnor | wc -l | grep 2
|
||||
|
||||
int %test1(int %X, int %Y) {
|
||||
%A = xor int %X, %Y
|
||||
|
@ -1,4 +1,5 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | %prcontext je 1 | grep "BB1_1:"
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | %prcontext je 1 | \
|
||||
; RUN: grep BB1_1:
|
||||
|
||||
%str = internal constant [14 x sbyte] c"Hello world!\0A\00" ; <[14 x sbyte]*> [#uses=1]
|
||||
%str = internal constant [13 x sbyte] c"Blah world!\0A\00" ; <[13 x sbyte]*> [#uses=1]
|
||||
|
@ -1,5 +1,4 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86-64
|
||||
; PR1033
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
; bswap should be constant folded when it is passed a constant argument
|
||||
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep bswapl | wc -l | grep 3 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | \
|
||||
; RUN: grep bswapl | wc -l | grep 3
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep rolw | wc -l | grep 1
|
||||
|
||||
declare ushort %llvm.bswap.i16(ushort)
|
||||
|
@ -1,5 +1,4 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep cmp | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep cmp | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep test | wc -l | grep 1
|
||||
|
||||
int %f1(int %X, int* %y) {
|
||||
|
@ -1,4 +1,3 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep add
|
||||
bool %X(int %X) {
|
||||
%Y = add int %X, 14
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user