Peter Collingbourne | 92648c2 | 2017-06-27 23:50:11 +0000 | [diff] [blame] | 1 | ; Check that we correctly handle the case where we have inline asm and the |
| 2 | ; target is not registered. In this case we shouldn't emit an irsymtab. |
| 3 | |
| 4 | ; RUN: llvm-as -o %t %s |
| 5 | ; RUN: llvm-bcanalyzer -dump %t | FileCheck --check-prefix=AS %s |
| 6 | |
| 7 | ; AS-NOT: <SYMTAB_BLOCK |
| 8 | |
| 9 | ; RUN: opt -o %t2 %s |
| 10 | ; RUN: llvm-bcanalyzer -dump %t2 | FileCheck --check-prefix=OPT %s |
| 11 | |
| 12 | ; OPT: <SYMTAB_BLOCK |
| 13 | |
| 14 | target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" |
| 15 | target triple = "x86_64-unknown-linux-gnu" |
| 16 | |
| 17 | module asm "ret" |