mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 02:29:18 +00:00
Update twoaddr-coalesce-3.ll to run on darwin and linux machines:
a) Default relocation model differences, b) Different numbers of # in comments git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231178 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5c82e570d2
commit
f2bf51c593
@ -1,4 +1,4 @@
|
|||||||
; RUN: llc < %s -march=x86-64 | FileCheck %s
|
; RUN: llc < %s -march=x86-64 -relocation-model=pic | FileCheck %s
|
||||||
; This test is to ensure the TwoAddrInstruction pass chooses the proper operands to
|
; This test is to ensure the TwoAddrInstruction pass chooses the proper operands to
|
||||||
; merge and generates fewer mov insns.
|
; merge and generates fewer mov insns.
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ for.body.lr.ph: ; preds = %entry
|
|||||||
|
|
||||||
; Check that only one mov will be generated in the kernel loop.
|
; Check that only one mov will be generated in the kernel loop.
|
||||||
; CHECK-LABEL: foo:
|
; CHECK-LABEL: foo:
|
||||||
; CHECK: [[LOOP1:^[a-zA-Z0-9_.]+]]: # %for.body
|
; CHECK: [[LOOP1:^[a-zA-Z0-9_.]+]]: {{#.*}} %for.body
|
||||||
; CHECK-NOT: mov
|
; CHECK-NOT: mov
|
||||||
; CHECK: movl {{.*}}, [[REG1:%[a-z0-9]+]]
|
; CHECK: movl {{.*}}, [[REG1:%[a-z0-9]+]]
|
||||||
; CHECK-NOT: mov
|
; CHECK-NOT: mov
|
||||||
@ -56,13 +56,14 @@ for.body.lr.ph: ; preds = %entry
|
|||||||
|
|
||||||
; Check that only two mov will be generated in the kernel loop.
|
; Check that only two mov will be generated in the kernel loop.
|
||||||
; CHECK-LABEL: goo:
|
; CHECK-LABEL: goo:
|
||||||
; CHECK: [[LOOP2:^[a-zA-Z0-9_.]+]]: # %for.body
|
; CHECK: g@GOTPCREL(%rip), [[REG3:%[a-z0-0]+]]
|
||||||
|
; CHECK: [[LOOP2:^[a-zA-Z0-9_.]+]]: {{#.*}} %for.body
|
||||||
; CHECK-NOT: mov
|
; CHECK-NOT: mov
|
||||||
; CHECK: movl {{.*}}, [[REG2:%[a-z0-9]+]]
|
; CHECK: movl {{.*}}, [[REG2:%[a-z0-9]+]]
|
||||||
; CHECK-NOT: mov
|
; CHECK-NOT: mov
|
||||||
; CHECK: shrl $31, [[REG2]]
|
; CHECK: shrl $31, [[REG2]]
|
||||||
; CHECK-NOT: mov
|
; CHECK-NOT: mov
|
||||||
; CHECK: movl {{.*}}, g(%rip)
|
; CHECK: movl {{.*}}, ([[REG3]])
|
||||||
; CHECK: jl [[LOOP2]]
|
; CHECK: jl [[LOOP2]]
|
||||||
for.body: ; preds = %for.body.lr.ph, %for.body
|
for.body: ; preds = %for.body.lr.ph, %for.body
|
||||||
%add5 = phi i32 [ %total.promoted, %for.body.lr.ph ], [ %add, %for.body ]
|
%add5 = phi i32 [ %total.promoted, %for.body.lr.ph ], [ %add, %for.body ]
|
||||||
|
Loading…
Reference in New Issue
Block a user