diff options
author | Derek Schuff <dschuff@chromium.org> | 2013-05-30 12:27:02 -0700 |
---|---|---|
committer | Derek Schuff <dschuff@chromium.org> | 2013-05-30 12:27:02 -0700 |
commit | 663c1c948321264aceb07b86cfadcd06b3386e1e (patch) | |
tree | bfb6b164a026dbcc39e493ac9558038ec4f26cbd /test | |
parent | 5f406495406e92cddd44d3f9aa477e72dca5f37e (diff) |
Enable integer promotion pass and add ABI check for integer types
This is a reapply of dc58e24a with one cleanup of a commented-out line in PromoteIntegers.cpp
R=mseaborn@chromium.org
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3360
Review URL: https://codereview.chromium.org/16015003
Diffstat (limited to 'test')
-rw-r--r-- | test/NaCl/PNaClABI/types-function.ll | 10 | ||||
-rw-r--r-- | test/NaCl/PNaClABI/types.ll | 14 |
2 files changed, 10 insertions, 14 deletions
diff --git a/test/NaCl/PNaClABI/types-function.ll b/test/NaCl/PNaClABI/types-function.ll index d1ead912cb..32004d39ad 100644 --- a/test/NaCl/PNaClABI/types-function.ll +++ b/test/NaCl/PNaClABI/types-function.ll @@ -17,12 +17,10 @@ define void @types() { ; see below... %h3 = fadd double 0.0, fpext (half 0.0 to double) -; TODO(mseaborn): Re-enable integer size checking. -; See https://code.google.com/p/nativeclient/issues/detail?id=3360 -; C;HECK: Function types has instruction operand with disallowed type: i17* -; store i32 0, i32* bitcast (i17* @a2 to i32*), align 4 -; C;HECK: Function types has instruction operand with disallowed type: i15 -; call void @func(i15 1) +; CHECK: Function types has instruction operand with disallowed type: i17* + store i32 0, i32* bitcast (i17* @a2 to i32*), align 4 +; CHECK: Function types has instruction operand with disallowed type: i15 + call void @func(i15 1) ; CHECK: Function types has disallowed instruction metadata: !foo ret void, !foo !0 diff --git a/test/NaCl/PNaClABI/types.ll b/test/NaCl/PNaClABI/types.ll index 802e02b5ff..5ee3004d63 100644 --- a/test/NaCl/PNaClABI/types.ll +++ b/test/NaCl/PNaClABI/types.ll @@ -4,14 +4,12 @@ ; Basic global types -; TODO(mseaborn): Re-enable integer size checking. -; See https://code.google.com/p/nativeclient/issues/detail?id=3360 -; C;HECK: Variable i4 has disallowed type: i4 -;@i4 = private global i4 0 -; C;HECK: Variable i33 has disallowed type: i33 -;@i33 = private global i33 0 -; C;HECK: Variable i128 has disallowed type: i128 -;@i128 = private global i128 0 +; CHECK: Variable i4 has disallowed type: i4 +@i4 = private global i4 0 +; CHECK: Variable i33 has disallowed type: i33 +@i33 = private global i33 0 +; CHECK: Variable i128 has disallowed type: i128 +@i128 = private global i128 0 ; CHECK: Variable hlf has disallowed type: half @hlf = private global half 0.0 |