blob: d2f29248967cc1bbd63db62aa47bba3bb2a51994 [file] [log] [blame]
Eric Christopher0a689592011-04-12 00:03:38 +00001// RUN: not llvm-mc -triple x86_64-apple-darwin10 %s 2> %t.err | FileCheck %s
2// RUN: FileCheck --check-prefix=CHECK-ERRORS %s < %t.err
3// CHECK: .section __TEXT,__text,regular,pure_instructions
Eric Christopherffc0e1f2011-04-12 00:18:03 +00004// CHECK-ERRORS: error: invalid octal number
Eric Christopher0a689592011-04-12 00:03:38 +00005.long 80+08
Eric Christopherffc0e1f2011-04-12 00:18:03 +00006
7// CHECK-ERRORS: error: invalid hexadecimal number
8.long 80+0xzz
Jim Grosbach76346c32011-06-29 16:05:14 +00009
10// CHECK-ERRORS: error: literal value out of range for directive
11.byte 256
12
13// CHECK-ERRORS: error: literal value out of range for directive
14.long 4e71cf69 // double floating point constant due to missing "0x"
David Majnemera375b262015-10-26 02:45:50 +000015
16// CHECK-ERRORS: error: literal value out of range for directive
17.word 0xfffffffff