Eric Christopher | 164254d | 2011-04-12 00:03:38 +0000 | [diff] [blame] | 1 | // 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 Christopher | 05f9e4e | 2011-04-12 00:18:03 +0000 | [diff] [blame] | 4 | // CHECK-ERRORS: error: invalid octal number |
Eric Christopher | 164254d | 2011-04-12 00:03:38 +0000 | [diff] [blame] | 5 | .long 80+08 |
Eric Christopher | 05f9e4e | 2011-04-12 00:18:03 +0000 | [diff] [blame] | 6 | |
| 7 | // CHECK-ERRORS: error: invalid hexadecimal number |
| 8 | .long 80+0xzz |
Jim Grosbach | 254cf03 | 2011-06-29 16:05:14 +0000 | [diff] [blame] | 9 | |
| 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" |