eliminate some uses of prcontext. Any help here would be appreciated :)

llvm-svn: 80520
This commit is contained in:
Chris Lattner 2009-08-30 21:45:23 +00:00
parent 4c06cf3a4f
commit f32c2d890c
4 changed files with 26 additions and 9 deletions

View File

@ -1,11 +1,14 @@
; RUN: llvm-as < %s | llc -march=x86 -asm-verbose | %prcontext je 1 | \
; RUN: grep BB1_1:
; RUN: llvm-as < %s | llc -march=x86 -asm-verbose | FileCheck %s
@str = internal constant [14 x i8] c"Hello world!\0A\00" ; <[14 x i8]*> [#uses=1]
@str.upgrd.1 = internal constant [13 x i8] c"Blah world!\0A\00" ; <[13 x i8]*> [#uses=1]
define i32 @main(i32 %argc, i8** %argv) {
define i32 @test(i32 %argc, i8** %argv) nounwind {
entry:
; CHECK: cmpl $2
; CHECK-NEXT: je
; CHECK-NEXT: LBB1_1
switch i32 %argc, label %UnifiedReturnBlock [
i32 1, label %bb
i32 2, label %bb2

View File

@ -1,8 +1,7 @@
; PR1075
; RUN: llvm-as < %s | llc -mtriple=x86_64-apple-darwin | \
; RUN: %prcontext {mulss LCPI1_3} 1 | grep mulss | count 1
; RUN: llvm-as < %s | llc -mtriple=x86_64-apple-darwin | FileCheck %s
define float @foo(float %x) {
define float @foo(float %x) nounwind {
%tmp1 = fmul float %x, 3.000000e+00
%tmp3 = fmul float %x, 5.000000e+00
%tmp5 = fmul float %x, 7.000000e+00
@ -11,4 +10,10 @@ define float @foo(float %x) {
%tmp12 = fadd float %tmp10, %tmp5
%tmp14 = fadd float %tmp12, %tmp7
ret float %tmp14
; CHECK: mulss LCPI1_2(%rip)
; CHECK-NEXT: addss
; CHECK-NEXT: mulss LCPI1_3(%rip)
; CHECK-NEXT: addss
; CHECK-NEXT: ret
}

View File

@ -1,7 +1,11 @@
; RUN: llvm-as < %s | llc -march=x86 -relocation-model=static -disable-fp-elim |\
; RUN: %prcontext 65534 1 | grep movl | count 1
; RUN: llvm-as < %s | llc -march=x86 -relocation-model=static -disable-fp-elim | FileCheck %s
; PR2536
; CHECK: movw %ax
; CHECK-NEXT: andl $65534, %
; CHECK-NEXT: movl $17
@g_5 = external global i16 ; <i16*> [#uses=2]
@g_107 = external global i16 ; <i16*> [#uses=1]
@g_229 = external global i32 ; <i32*> [#uses=1]

View File

@ -1,7 +1,12 @@
; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin | %prcontext End 2 | grep mov
; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin | FileCheck %s
; PR3149
; Make sure the copy after inline asm is not coalesced away.
; CHECK: ## InlineAsm End
; CHECK-NEXT: BB1_2:
; CHECK-NEXT: movl %esi, %eax
@"\01LC" = internal constant [7 x i8] c"n0=%d\0A\00" ; <[7 x i8]*> [#uses=1]
@llvm.used = appending global [1 x i8*] [ i8* bitcast (i32 (i64, i64)* @umoddi3 to i8*) ], section "llvm.metadata" ; <[1 x i8*]*> [#uses=0]