[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / ELF / AMDGPU / cfi.s
blob83713bbd03671b4c6e9d4f694e222a9bc9e00263
1 # RUN: llvm-mc -filetype=asm -mcpu=gfx900 -triple amdgcn-amd-amdhsa %s -o - | FileCheck --check-prefix=ASM %s
2 # RUN: llvm-mc -filetype=obj -mcpu=gfx900 -triple amdgcn-amd-amdhsa %s -o %t
3 # RUN: llvm-readelf -S -r -x .debug_frame %t | FileCheck --check-prefix=READELF %s
5 f:
6 .cfi_sections .debug_frame
7 .cfi_startproc
8 s_nop 0
9 .cfi_endproc
11 # ASM: f:
12 # ASM-NEXT: .cfi_sections .debug_frame
13 # ASM-NEXT: .cfi_startproc
14 # ASM-NEXT: s_nop 0
15 # ASM-NEXT: .cfi_endproc
17 # READELF: Section Headers:
18 # READELF: Name Type Address Off Size ES Flg Lk Inf Al
19 # READELF: .debug_frame PROGBITS 0000000000000000 000048 000028 00 0 0 8
21 # READELF: Relocation section '.rela.debug_frame' at offset 0xd0 contains 2 entries:
22 # READELF-NEXT: Offset Info Type Symbol's Value Symbol's Name + Addend
23 # READELF-NEXT: 0000000000000014 0000000300000006 R_AMDGPU_ABS32 0000000000000000 .debug_frame + 0
24 # READELF-NEXT: 0000000000000018 0000000100000003 R_AMDGPU_ABS64 0000000000000000 .text + 0
26 # READELF: Hex dump of section '.debug_frame':
27 # READELF-NEXT: 0x00000000 0c000000 ffffffff 04000800 04041000 ................
28 # READELF-NEXT: 0x00000010 14000000 00000000 00000000 00000000 ................
29 # READELF-NEXT: 0x00000020 04000000 00000000 ........