forked from OSchip/llvm-project
Change test cases to handle unaligned references.
Hal Finkel recently added code to allow unaligned memory references for PowerPC. Two tests were temporarily modified with -disable-ppc-unaligned to keep them from failing. This patch adjusts the expected code generation for the unaligned references. llvm-svn: 177328
This commit is contained in:
parent
3053029310
commit
45bdbe7ec0
|
@ -1,4 +1,4 @@
|
|||
; RUN: llc -mcpu=pwr7 -O0 -disable-fp-elim -disable-ppc-unaligned < %s | FileCheck %s
|
||||
; RUN: llc -mcpu=pwr7 -O0 -disable-fp-elim < %s | 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-v128:128:128-n32:64"
|
||||
target triple = "powerpc64-unknown-linux-gnu"
|
||||
|
@ -205,19 +205,11 @@ entry:
|
|||
%add13 = add nsw i32 %add11, %6
|
||||
ret i32 %add13
|
||||
|
||||
; CHECK: lbz {{[0-9]+}}, 149(1)
|
||||
; CHECK: lbz {{[0-9]+}}, 150(1)
|
||||
; CHECK: lbz {{[0-9]+}}, 147(1)
|
||||
; CHECK: lbz {{[0-9]+}}, 148(1)
|
||||
; CHECK: lbz {{[0-9]+}}, 133(1)
|
||||
; CHECK: lbz {{[0-9]+}}, 134(1)
|
||||
; CHECK: lha {{[0-9]+}}, 126(1)
|
||||
; CHECK: lbz {{[0-9]+}}, 119(1)
|
||||
; CHECK: lha {{[0-9]+}}, 133(1)
|
||||
; CHECK: lwz {{[0-9]+}}, 140(1)
|
||||
; CHECK: lhz {{[0-9]+}}, 154(1)
|
||||
; CHECK: lhz {{[0-9]+}}, 156(1)
|
||||
; CHECK: lbz {{[0-9]+}}, 163(1)
|
||||
; CHECK: lbz {{[0-9]+}}, 164(1)
|
||||
; CHECK: lbz {{[0-9]+}}, 161(1)
|
||||
; CHECK: lbz {{[0-9]+}}, 162(1)
|
||||
; CHECK: lwz {{[0-9]+}}, 147(1)
|
||||
; CHECK: lwz {{[0-9]+}}, 154(1)
|
||||
; CHECK: lwz {{[0-9]+}}, 161(1)
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: llc -mcpu=pwr7 -O0 -disable-fp-elim -disable-ppc-unaligned < %s | FileCheck %s
|
||||
; RUN: llc -mcpu=pwr7 -O0 -disable-fp-elim < %s | 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-v128:128:128-n32:64"
|
||||
target triple = "powerpc64-unknown-linux-gnu"
|
||||
|
@ -191,19 +191,11 @@ entry:
|
|||
; CHECK: std 5, 64(1)
|
||||
; CHECK: sth 4, 62(1)
|
||||
; CHECK: stb 3, 55(1)
|
||||
; CHECK: lbz {{[0-9]+}}, 85(1)
|
||||
; CHECK: lbz {{[0-9]+}}, 86(1)
|
||||
; CHECK: lbz {{[0-9]+}}, 83(1)
|
||||
; CHECK: lbz {{[0-9]+}}, 84(1)
|
||||
; CHECK: lbz {{[0-9]+}}, 69(1)
|
||||
; CHECK: lbz {{[0-9]+}}, 70(1)
|
||||
; CHECK: lha {{[0-9]+}}, 62(1)
|
||||
; CHECK: lbz {{[0-9]+}}, 55(1)
|
||||
; CHECK: lha {{[0-9]+}}, 69(1)
|
||||
; CHECK: lwz {{[0-9]+}}, 76(1)
|
||||
; CHECK: lhz {{[0-9]+}}, 90(1)
|
||||
; CHECK: lhz {{[0-9]+}}, 92(1)
|
||||
; CHECK: lbz {{[0-9]+}}, 99(1)
|
||||
; CHECK: lbz {{[0-9]+}}, 100(1)
|
||||
; CHECK: lbz {{[0-9]+}}, 97(1)
|
||||
; CHECK: lbz {{[0-9]+}}, 98(1)
|
||||
; CHECK: lwz {{[0-9]+}}, 83(1)
|
||||
; CHECK: lwz {{[0-9]+}}, 90(1)
|
||||
; CHECK: lwz {{[0-9]+}}, 97(1)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue