diff options
| author | Richard Osborne <richard@xmos.com> | 2011-01-31 17:41:44 +0000 |
|---|---|---|
| committer | Richard Osborne <richard@xmos.com> | 2011-01-31 17:41:44 +0000 |
| commit | 272e084bca2f151c7af390ae1acc45b18b495a91 (patch) | |
| tree | 4b0368ee97f7c90b2e1ef381cfbb7e9f076b49b1 /llvm/test/CodeGen/XCore | |
| parent | 1475d4fa369539771cbcaf11b325748709026e59 (diff) | |
| download | bcm5719-llvm-272e084bca2f151c7af390ae1acc45b18b495a91.tar.gz bcm5719-llvm-272e084bca2f151c7af390ae1acc45b18b495a91.zip | |
Fix bug where ReduceLoadWidth was creating illegal ZEXTLOAD instructions.
llvm-svn: 124587
Diffstat (limited to 'llvm/test/CodeGen/XCore')
| -rw-r--r-- | llvm/test/CodeGen/XCore/2011-01-31-DAGCombineBug.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/XCore/2011-01-31-DAGCombineBug.ll b/llvm/test/CodeGen/XCore/2011-01-31-DAGCombineBug.ll new file mode 100644 index 00000000000..f8fe0d2136f --- /dev/null +++ b/llvm/test/CodeGen/XCore/2011-01-31-DAGCombineBug.ll @@ -0,0 +1,10 @@ +; RUN: llc < %s -march=xcore +%struct.st = type <{ i8, i32, i8, i32, i8, i32 }> + +@x = external global %struct.st, align 4 + +define i32 @test_entry() nounwind { +entry: + %0 = load i32* getelementptr inbounds (%struct.st* @x, i32 0, i32 3), align 2 + ret i32 %0 +} |

