Eric Christopher | 0a68959 | 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 |
Nirav Dave | 1a9044b | 2016-10-24 14:35:29 +0000 | [diff] [blame] | 4 | // CHECK-ERRORS: [[@LINE+1]]:10: error: invalid octal number in '.long' directive |
Eric Christopher | 0a68959 | 2011-04-12 00:03:38 +0000 | [diff] [blame] | 5 | .long 80+08 |
Eric Christopher | ffc0e1f | 2011-04-12 00:18:03 +0000 | [diff] [blame] | 6 | |
Nirav Dave | 1a9044b | 2016-10-24 14:35:29 +0000 | [diff] [blame] | 7 | // CHECK-ERRORS: [[@LINE+1]]:10: error: invalid hexadecimal number in '.long' directive |
Eric Christopher | ffc0e1f | 2011-04-12 00:18:03 +0000 | [diff] [blame] | 8 | .long 80+0xzz |
Jim Grosbach | 76346c3 | 2011-06-29 16:05:14 +0000 | [diff] [blame] | 9 | |
Nirav Dave | 1a9044b | 2016-10-24 14:35:29 +0000 | [diff] [blame] | 10 | // CHECK-ERRORS: [[@LINE+1]]:7: error: out of range literal value in '.byte' directive |
Jim Grosbach | 76346c3 | 2011-06-29 16:05:14 +0000 | [diff] [blame] | 11 | .byte 256 |
| 12 | |
Nirav Dave | 1a9044b | 2016-10-24 14:35:29 +0000 | [diff] [blame] | 13 | // CHECK-ERRORS: [[@LINE+1]]:7: error: out of range literal value in '.long' directive |
Jim Grosbach | 76346c3 | 2011-06-29 16:05:14 +0000 | [diff] [blame] | 14 | .long 4e71cf69 // double floating point constant due to missing "0x" |
David Majnemer | a375b26 | 2015-10-26 02:45:50 +0000 | [diff] [blame] | 15 | |
Nirav Dave | 1a9044b | 2016-10-24 14:35:29 +0000 | [diff] [blame] | 16 | // CHECK-ERRORS: [[@LINE+1]]:7: error: literal value out of range for directive |
David Majnemer | a375b26 | 2015-10-26 02:45:50 +0000 | [diff] [blame] | 17 | .word 0xfffffffff |