summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-03-07 06:08:31 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-03-07 06:08:31 +0000
commitb1f25f1b93fd9cf3dbe4168a73d9485780b1fb47 (patch)
tree4cfa442051bc59428d1377a6ae1bde5f3db72041 /llvm/test
parentc994c6a35bed00a5a98ff9b6fd55dc60cc3c062d (diff)
downloadbcm5719-llvm-b1f25f1b93fd9cf3dbe4168a73d9485780b1fb47.tar.gz
bcm5719-llvm-b1f25f1b93fd9cf3dbe4168a73d9485780b1fb47.zip
Replace PROLOG_LABEL with a new CFI_INSTRUCTION.
The old system was fairly convoluted: * A temporary label was created. * A single PROLOG_LABEL was created with it. * A few MCCFIInstructions were created with the same label. The semantics were that the cfi instructions were mapped to the PROLOG_LABEL via the temporary label. The output position was that of the PROLOG_LABEL. The temporary label itself was used only for doing the mapping. The new CFI_INSTRUCTION has a 1:1 mapping to MCCFIInstructions and points to one by holding an index into the CFI instructions of this function. I did consider removing MMI.getFrameInstructions completelly and having CFI_INSTRUCTION own a MCCFIInstruction, but MCCFIInstructions have non trivial constructors and destructors and are somewhat big, so the this setup is probably better. The net result is that we don't create temporary labels that are never used. llvm-svn: 203204
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/AArch64/pic-eh-stubs.ll4
-rw-r--r--llvm/test/CodeGen/ARM/indirectbr-2.ll2
-rw-r--r--llvm/test/CodeGen/ARM/indirectbr.ll6
-rw-r--r--llvm/test/CodeGen/X86/pr10420.ll8
4 files changed, 10 insertions, 10 deletions
diff --git a/llvm/test/CodeGen/AArch64/pic-eh-stubs.ll b/llvm/test/CodeGen/AArch64/pic-eh-stubs.ll
index 6ec4b19a120..c87b2e72842 100644
--- a/llvm/test/CodeGen/AArch64/pic-eh-stubs.ll
+++ b/llvm/test/CodeGen/AArch64/pic-eh-stubs.ll
@@ -10,8 +10,8 @@
; ... referring indirectly to stubs for its typeinfo ...
; CHECK: // @TType Encoding = indirect pcrel sdata8
; ... one of which is "int"'s typeinfo
-; CHECK: .Ltmp9:
-; CHECK-NEXT: .xword .L_ZTIi.DW.stub-.Ltmp9
+; CHECK: .Ltmp7:
+; CHECK-NEXT: .xword .L_ZTIi.DW.stub-.Ltmp7
; .. and which is properly defined (in a writable section for the dynamic loader) later.
; CHECK: .section .data.rel,"aw"
diff --git a/llvm/test/CodeGen/ARM/indirectbr-2.ll b/llvm/test/CodeGen/ARM/indirectbr-2.ll
index 9b9ab2a73de..0c41da65800 100644
--- a/llvm/test/CodeGen/ARM/indirectbr-2.ll
+++ b/llvm/test/CodeGen/ARM/indirectbr-2.ll
@@ -9,7 +9,7 @@
; statement shouldn't be implicitly defined.
; CHECK-LABEL: func:
-; CHECK: Ltmp3: @ Block address taken
+; CHECK: Ltmp1: @ Block address taken
; CHECK-NOT: @ implicit-def: R0
; CHECK: @ 4-byte Reload
diff --git a/llvm/test/CodeGen/ARM/indirectbr.ll b/llvm/test/CodeGen/ARM/indirectbr.ll
index 9a6f417ba3a..7c49cb310f3 100644
--- a/llvm/test/CodeGen/ARM/indirectbr.ll
+++ b/llvm/test/CodeGen/ARM/indirectbr.ll
@@ -69,7 +69,7 @@ L1: ; preds = %L2, %bb2
store i8* blockaddress(@foo, %L5), i8** @nextaddr, align 4
ret i32 %res.3
}
-; ARM: .long Ltmp1-(LPC{{.*}}+8)
-; THUMB: .long Ltmp1-(LPC{{.*}}+4)
+; ARM: .long Ltmp0-(LPC{{.*}}+8)
+; THUMB: .long Ltmp0-(LPC{{.*}}+4)
; THUMB: .long _nextaddr-([[NEXTADDR_PCBASE]]+4)
-; THUMB2: .long Ltmp1
+; THUMB2: .long Ltmp0
diff --git a/llvm/test/CodeGen/X86/pr10420.ll b/llvm/test/CodeGen/X86/pr10420.ll
index b2f08e873b2..7058b1e8304 100644
--- a/llvm/test/CodeGen/X86/pr10420.ll
+++ b/llvm/test/CodeGen/X86/pr10420.ll
@@ -18,7 +18,7 @@ define void @bar() {
; CHECK-NEXT: Ltmp0:
; CHECK: _bar: ## @bar
-; CHECK-NEXT: Ltmp3:
+; CHECK-NEXT: Ltmp2:
; CHECK: ## FDE CIE Offset
; CHECK-NEXT: .long
@@ -30,7 +30,7 @@ define void @bar() {
; CHECK: ## FDE CIE Offset
; CHECK-NEXT: .long
; CHECK-NEXT: Ltmp[[NUM1:[0-9]*]]:
-; CHECK-NEXT: Ltmp[[NUM2:[0-9]*]] = Ltmp3-Ltmp[[NUM1]] ## FDE initial location
+; CHECK-NEXT: Ltmp[[NUM2:[0-9]*]] = Ltmp2-Ltmp[[NUM1]] ## FDE initial location
; CHECK-NEXT: {{.quad|.long}} Ltmp[[NUM2]]
@@ -38,7 +38,7 @@ define void @bar() {
; OLD-NEXT: Ltmp0:
; OLD: _bar: ## @bar
-; OLD-NEXT: Ltmp3:
+; OLD-NEXT: Ltmp2:
; OLD: ## FDE CIE Offset
; OLD-NEXT: .long
@@ -48,4 +48,4 @@ define void @bar() {
; OLD: ## FDE CIE Offset
; OLD-NEXT: .long
; OLD-NEXT: Ltmp[[NUM1:[0-9]*]]:
-; OLD-NEXT: {{.quad|.long}} Ltmp3-Ltmp[[NUM1]] ## FDE initial location
+; OLD-NEXT: {{.quad|.long}} Ltmp2-Ltmp[[NUM1]] ## FDE initial location
OpenPOWER on IntegriCloud