diff options
| author | Coby Tayree <coby.tayree@intel.com> | 2017-10-02 14:36:31 +0000 |
|---|---|---|
| committer | Coby Tayree <coby.tayree@intel.com> | 2017-10-02 14:36:31 +0000 |
| commit | 01e5320c484ae87b524e1942c0f668397a4ef606 (patch) | |
| tree | d7339e6e2f06d0f7c52abbabcffcf4c703f5f09c /llvm/test/MC/AsmParser | |
| parent | 5dadb79fcda0b98aeff0411ed0e51a2957056f96 (diff) | |
| download | bcm5719-llvm-01e5320c484ae87b524e1942c0f668397a4ef606.tar.gz bcm5719-llvm-01e5320c484ae87b524e1942c0f668397a4ef606.zip | |
[AsmParser] Support GAS's .print directive
Differential Revision: https://reviews.llvm.org/D38448
llvm-svn: 314674
Diffstat (limited to 'llvm/test/MC/AsmParser')
| -rw-r--r-- | llvm/test/MC/AsmParser/directive_print.s | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm/test/MC/AsmParser/directive_print.s b/llvm/test/MC/AsmParser/directive_print.s new file mode 100644 index 00000000000..9d228440885 --- /dev/null +++ b/llvm/test/MC/AsmParser/directive_print.s @@ -0,0 +1,18 @@ +# RUN: not llvm-mc -triple i386-linux-gnu %s 2> %t.err | FileCheck %s +# RUN: FileCheck < %t.err %s --check-prefix=CHECK-ERR + +T1: +# CHECK: e +# CHECK: 2.718281828459045235 +.print "e" +.print "2.718281828459045235" + +T2: +# CHECK-ERR: expected double quoted string after .print +.altmacro +.print <pi> +.noaltmacro + +T3: +# CHECK-ERR: expected end of statement +.print "a" "misplaced-string" |

