OLD | NEW |
1 ; Tests the Subzero "name mangling" when using the "llvm2ice --prefix" | 1 ; Tests the Subzero "name mangling" when using the "llvm2ice --prefix" |
2 ; option. Also does a quick smoke test of -ffunction-sections. | 2 ; option. Also does a quick smoke test of -ffunction-sections. |
3 | 3 |
4 ; REQUIRES: allow_dump | 4 ; REQUIRES: allow_dump |
5 ; RUN: %p2i -i %s --args --verbose none -ffunction-sections | FileCheck %s | 5 ; RUN: %p2i -i %s --args --verbose none -ffunction-sections | FileCheck %s |
6 ; TODO(stichnot): The following line causes this test to fail. | 6 ; TODO(stichnot): The following line causes this test to fail. |
7 ; RUIN: %p2i -i %s --args --verbose none \ | 7 ; RUIN: %p2i --assemble --disassemble -i %s --args --verbose none \ |
8 ; RUIN: | llvm-mc -triple=i686-none-nacl -filetype=obj | 8 ; RUIN: | FileCheck %s |
9 ; RUN: %p2i -i %s --args --verbose none --prefix Subzero -ffunction-sections \ | 9 ; RUN: %p2i -i %s --args --verbose none --prefix Subzero -ffunction-sections \ |
10 ; RUN: | FileCheck --check-prefix=MANGLE %s | 10 ; RUN: | FileCheck --check-prefix=MANGLE %s |
11 | 11 |
12 define internal void @FuncC(i32 %i) { | 12 define internal void @FuncC(i32 %i) { |
13 entry: | 13 entry: |
14 ret void | 14 ret void |
15 } | 15 } |
16 ; FuncC is a C symbol that isn't recognized as a C++ mangled symbol. | 16 ; FuncC is a C symbol that isn't recognized as a C++ mangled symbol. |
17 ; CHECK-LABEL: .text.FuncC | 17 ; CHECK-LABEL: .text.FuncC |
18 ; CHECK: FuncC: | 18 ; CHECK: FuncC: |
19 ; MANGLE-LABEL: .text.SubzeroFuncC | 19 ; MANGLE-LABEL: .text.SubzeroFuncC |
20 ; MANGLE: SubzeroFuncC: | 20 ; MANGLE: SubzeroFuncC: |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 ret void | 136 ret void |
137 } | 137 } |
138 | 138 |
139 ; Test that unmangled (non-C++) strings don't have substitutions updated. | 139 ; Test that unmangled (non-C++) strings don't have substitutions updated. |
140 define internal void @foo_S_S0_SZ_S() { | 140 define internal void @foo_S_S0_SZ_S() { |
141 ; MANGLE-LABEL: .text.Subzerofoo_S_S0_SZ_S | 141 ; MANGLE-LABEL: .text.Subzerofoo_S_S0_SZ_S |
142 ; MANGLE: Subzerofoo_S_S0_SZ_S: | 142 ; MANGLE: Subzerofoo_S_S0_SZ_S: |
143 entry: | 143 entry: |
144 ret void | 144 ret void |
145 } | 145 } |
OLD | NEW |