diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2018-01-24 21:36:45 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2018-01-24 21:36:45 +0000 |
| commit | 60c13c77127954f95336970e7c3ea4a783dc3744 (patch) | |
| tree | add09e3e7237736676c36fe8bf707522402b668d /llvm/test | |
| parent | d3c54313abe723c834462e9ed8f738fc0b7ca542 (diff) | |
| download | bcm5719-llvm-60c13c77127954f95336970e7c3ea4a783dc3744.tar.gz bcm5719-llvm-60c13c77127954f95336970e7c3ea4a783dc3744.zip | |
[InstCombine] fix datalayout in test file
The only part of the datalayout that should matter for these tests
is the part that specifies the legal int widths ('n*'). But there
was a bug - that part of the string was not correctly separated with
the expected '-' character, so we were testing as if there were no
legal int widths at all. Removed the leading cruft so we have some
legal ints to test with.
I noticed this while testing a potential change to the way we
transform shifts and sexts in D42424.
llvm-svn: 323377
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/Transforms/InstCombine/signext.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Transforms/InstCombine/signext.ll b/llvm/test/Transforms/InstCombine/signext.ll index ff92ec0a8e3..df484ca24f8 100644 --- a/llvm/test/Transforms/InstCombine/signext.ll +++ b/llvm/test/Transforms/InstCombine/signext.ll @@ -1,7 +1,7 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py ; RUN: opt < %s -instcombine -S | FileCheck %s -target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128:n8:16:32:64" +target datalayout = "n8:16:32:64" define i32 @test1(i32 %x) { ; CHECK-LABEL: @test1( |

