[llvm] r188923 - Add testcase for r188873: MCTextAtom boundaries.
Ahmed Bougacha
ahmed.bougacha at gmail.com
Wed Aug 21 12:40:23 PDT 2013
Author: ab
Date: Wed Aug 21 14:40:22 2013
New Revision: 188923
URL: http://llvm.org/viewvc/llvm-project?rev=188923&view=rev
Log:
Add testcase for r188873: MCTextAtom boundaries.
Check that they are correctly computed if the last instruction is
larger than 1 byte.
Added:
llvm/trunk/test/Object/X86/objdump-cfg-textatomsize.yaml
Added: llvm/trunk/test/Object/X86/objdump-cfg-textatomsize.yaml
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Object/X86/objdump-cfg-textatomsize.yaml?rev=188923&view=auto
==============================================================================
--- llvm/trunk/test/Object/X86/objdump-cfg-textatomsize.yaml (added)
+++ llvm/trunk/test/Object/X86/objdump-cfg-textatomsize.yaml Wed Aug 21 14:40:22 2013
@@ -0,0 +1,39 @@
+# RUN: yaml2obj -format=elf %s | llvm-objdump -d -yaml-cfg=%t - && FileCheck --check-prefix=CFG < %t %s
+# REQUIRES: shell
+#
+# Generated from:
+# main:
+# .LBL0_1:
+# jmp .LBL0_1
+#
+
+!ELF
+FileHeader:
+ Class: ELFCLASS64
+ Data: ELFDATA2LSB
+ Type: ET_REL
+ Machine: EM_X86_64
+Sections:
+ - Name: .text
+ Type: SHT_PROGBITS
+ Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
+ Content: "EBFE"
+
+## 0000000000000000 <main>:
+
+#CFG: Atoms:
+#CFG: - StartAddress: 0x0000000000000000
+#CFG: Size: 2
+
+## 0: eb fe jmp $-2
+#CFG: - Inst: JMP_1
+#CFG: Size: 2
+#CFG: Ops: [ I-2 ]
+
+Symbols:
+ Global:
+ - Name: main
+ Type: STT_FUNC
+ Section: .text
+ Value: 0x0
+ Size: 2
More information about the llvm-commits
mailing list