mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
remove unnecessary test specifications
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241419 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
; RUN: opt < %s -basicaa -slp-vectorizer -dce -S -mtriple=x86_64-apple-macosx10.8.0 -mcpu=corei7-avx | FileCheck %s
|
; RUN: opt < %s -basicaa -slp-vectorizer -S -mcpu=corei7-avx | FileCheck %s
|
||||||
|
|
||||||
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
|
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
|
||||||
target triple = "x86_64-apple-macosx10.8.0"
|
target triple = "x86_64-apple-macosx10.8.0"
|
||||||
@@ -11,12 +11,12 @@ target triple = "x86_64-apple-macosx10.8.0"
|
|||||||
;CHECK: add nsw <4 x i32>
|
;CHECK: add nsw <4 x i32>
|
||||||
;CHECK: store <4 x i32>
|
;CHECK: store <4 x i32>
|
||||||
;CHECK: ret
|
;CHECK: ret
|
||||||
define i32 @foo(i32* nocapture %A, i32 %n) #0 {
|
define i32 @foo(i32* nocapture %A, i32 %n) {
|
||||||
entry:
|
entry:
|
||||||
%cmp62 = icmp sgt i32 %n, 0
|
%cmp62 = icmp sgt i32 %n, 0
|
||||||
br i1 %cmp62, label %for.body, label %for.end
|
br i1 %cmp62, label %for.body, label %for.end
|
||||||
|
|
||||||
for.body: ; preds = %entry, %for.body
|
for.body:
|
||||||
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ]
|
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ]
|
||||||
%arrayidx = getelementptr inbounds i32, i32* %A, i64 %indvars.iv
|
%arrayidx = getelementptr inbounds i32, i32* %A, i64 %indvars.iv
|
||||||
%0 = load i32, i32* %arrayidx, align 4
|
%0 = load i32, i32* %arrayidx, align 4
|
||||||
@@ -62,8 +62,7 @@ for.body: ; preds = %entry, %for.body
|
|||||||
%cmp = icmp slt i32 %15, %n
|
%cmp = icmp slt i32 %15, %n
|
||||||
br i1 %cmp, label %for.body, label %for.end
|
br i1 %cmp, label %for.body, label %for.end
|
||||||
|
|
||||||
for.end: ; preds = %for.body, %entry
|
for.end:
|
||||||
ret i32 undef
|
ret i32 undef
|
||||||
}
|
}
|
||||||
|
|
||||||
attributes #0 = { nounwind ssp uwtable "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf"="true" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" }
|
|
||||||
|
Reference in New Issue
Block a user