| 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 ; RUN: %llvm2ice --verbose none -ffunction-sections %s | FileCheck %s | 4 ; RUN: %llvm2ice --verbose none -ffunction-sections %s | FileCheck %s |
| 5 ; TODO: The following line causes this test to fail. | 5 ; TODO: The following line causes this test to fail. |
| 6 ; RUIN: %llvm2ice --verbose none %s \ | 6 ; RUIN: %llvm2ice --verbose none %s \ |
| 7 ; RUIN: | llvm-mc -arch=x86 -x86-asm-syntax=intel -filetype=obj | 7 ; RUIN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj |
| 8 ; RUN: %llvm2ice --verbose none --prefix Subzero -ffunction-sections %s \ | 8 ; RUN: %llvm2ice --verbose none --prefix Subzero -ffunction-sections %s \ |
| 9 ; RUN: | FileCheck --check-prefix=MANGLE %s | 9 ; RUN: | FileCheck --check-prefix=MANGLE %s |
| 10 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s | 10 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s |
| 11 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s | 11 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s |
| 12 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \ | 12 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \ |
| 13 ; RUN: | FileCheck --check-prefix=DUMP %s | 13 ; RUN: | FileCheck --check-prefix=DUMP %s |
| 14 | 14 |
| 15 define internal void @FuncC(i32 %i) { | 15 define internal void @FuncC(i32 %i) { |
| 16 entry: | 16 entry: |
| 17 ret void | 17 ret void |
| 18 } | 18 } |
| 19 ; FuncC is a C symbol that isn't recognized as a C++ mangled symbol. | 19 ; FuncC is a C symbol that isn't recognized as a C++ mangled symbol. |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 ; Test that unmangled (non-C++) strings don't have substitutions updated. | 142 ; Test that unmangled (non-C++) strings don't have substitutions updated. |
| 143 define internal void @foo_S_S0_SZ_S() { | 143 define internal void @foo_S_S0_SZ_S() { |
| 144 ; MANGLE-LABEL: .text.Subzerofoo_S_S0_SZ_S | 144 ; MANGLE-LABEL: .text.Subzerofoo_S_S0_SZ_S |
| 145 ; MANGLE: Subzerofoo_S_S0_SZ_S: | 145 ; MANGLE: Subzerofoo_S_S0_SZ_S: |
| 146 entry: | 146 entry: |
| 147 ret void | 147 ret void |
| 148 } | 148 } |
| 149 | 149 |
| 150 ; ERRORS-NOT: ICE translation error | 150 ; ERRORS-NOT: ICE translation error |
| 151 ; DUMP-NOT: SZ | 151 ; DUMP-NOT: SZ |
| OLD | NEW |