blob: 09a5bcbda6503ad5846f1d124b242f996577e6d8 [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
Nirav Dave1a9044b2016-10-24 14:35:29 +00004// CHECK-ERRORS: [[@LINE+1]]:10: error: invalid octal number in '.long' directive
Eric Christopher0a689592011-04-12 00:03:38 +00005.long 80+08
Eric Christopherffc0e1f2011-04-12 00:18:03 +00006
Nirav Dave1a9044b2016-10-24 14:35:29 +00007// CHECK-ERRORS: [[@LINE+1]]:10: error: invalid hexadecimal number in '.long' directive
Eric Christopherffc0e1f2011-04-12 00:18:03 +00008.long 80+0xzz
Jim Grosbach76346c32011-06-29 16:05:14 +00009
Nirav Dave1a9044b2016-10-24 14:35:29 +000010// CHECK-ERRORS: [[@LINE+1]]:7: error: out of range literal value in '.byte' directive
Jim Grosbach76346c32011-06-29 16:05:14 +000011.byte 256
12
Nirav Dave1a9044b2016-10-24 14:35:29 +000013// CHECK-ERRORS: [[@LINE+1]]:7: error: out of range literal value in '.long' directive
Jim Grosbach76346c32011-06-29 16:05:14 +000014.long 4e71cf69 // double floating point constant due to missing "0x"
David Majnemera375b262015-10-26 02:45:50 +000015
Nirav Dave1a9044b2016-10-24 14:35:29 +000016// CHECK-ERRORS: [[@LINE+1]]:7: error: literal value out of range for directive
David Majnemera375b262015-10-26 02:45:50 +000017.word 0xfffffffff