diff options
author | Mark Seaborn <mseaborn@chromium.org> | 2013-05-31 09:53:26 -0700 |
---|---|---|
committer | Mark Seaborn <mseaborn@chromium.org> | 2013-05-31 09:53:26 -0700 |
commit | 99c2f236a1a09b6c550e91b71dabbbb0e634ea37 (patch) | |
tree | 43673bef9358dbb6626e438f1fbeaab079884b83 /test | |
parent | 381b0fb87f1fe806d678af8c48b67b4e0dc3a43b (diff) |
PNaCl ABI checker: Disallow ExtractValue and InsertValue instructions
Uses of these are removed by ExpandMulWithOverflow and ExpandStructRegs.
BUG=https://code.google.com/p/nativeclient/issues/detail?id=3343
TEST=*.ll tests + PNaCl toolchain trybots
Review URL: https://codereview.chromium.org/15995005
Diffstat (limited to 'test')
-rw-r--r-- | test/NaCl/PNaClABI/instructions.ll | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/NaCl/PNaClABI/instructions.ll b/test/NaCl/PNaClABI/instructions.ll index 72134e76c5..f96b4567d1 100644 --- a/test/NaCl/PNaClABI/instructions.ll +++ b/test/NaCl/PNaClABI/instructions.ll @@ -58,7 +58,10 @@ define void @vectors() { define void @aggregates() { ; Aggregate operations %a1 = extractvalue { i32, i32 } { i32 0, i32 0 }, 0 +; CHECK-NOT: disallowed +; CHECK: Function aggregates has disallowed instruction: extractvalue %a2 = insertvalue {i32, float} undef, i32 1, 0 +; CHECK-NEXT: Function aggregates has disallowed instruction: insertvalue ret void } |