• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: not llvm-ml -filetype=s %s /Fo /dev/null 2>&1 | FileCheck %s --implicit-check-not=error:
2
3.code
4
5t1:
6; CHECK: :[[# @LINE + 1]]:10: error: invalid decimal number
7mov eax, 120b
8; CHECK: :[[# @LINE + 1]]:10: error: invalid binary number
9mov eax, 120y
10.radix 11
11; CHECK: :[[# @LINE + 1]]:10: error: invalid base-11 number
12mov eax, 120b
13; CHECK: :[[# @LINE + 1]]:10: error: invalid binary number
14mov eax, 120y
15.radix 10
16
17t2:
18; CHECK: :[[# @LINE + 1]]:10: error: invalid octal number
19mov eax, 190o
20; CHECK: :[[# @LINE + 1]]:10: error: invalid octal number
21mov eax, 190q
22.radix 13
23; CHECK: :[[# @LINE + 1]]:10: error: invalid octal number
24mov eax, 190o
25; CHECK: :[[# @LINE + 1]]:10: error: invalid octal number
26mov eax, 190q
27.radix 10
28
29t3:
30; CHECK: :[[# @LINE + 1]]:10: error: invalid decimal number
31mov eax, 1f0d
32; CHECK: :[[# @LINE + 1]]:10: error: invalid decimal number
33mov eax, 1f0t
34.radix 13
35; CHECK: :[[# @LINE + 1]]:10: error: invalid base-13 number
36mov eax, 1f0d
37; CHECK: :[[# @LINE + 1]]:10: error: invalid decimal number
38mov eax, 1f0t
39.radix 10
40
41t4:
42; CHECK: :[[# @LINE + 1]]:10: error: invalid decimal number
43mov eax, 10e
44.radix 16
45.radix 10
46; CHECK: :[[# @LINE + 1]]:10: error: invalid decimal number
47mov eax, 10e
48
49t5:
50.radix 9
51; CHECK: :[[# @LINE + 1]]:10: error: invalid base-9 number
52mov eax, 9
53.radix 10
54
55END
56