diff options
| author | Duncan Sands <baldrick@free.fr> | 2012-07-25 09:45:37 +0000 |
|---|---|---|
| committer | Duncan Sands <baldrick@free.fr> | 2012-07-25 09:45:37 +0000 |
| commit | 77a1f3b56400f50f58a250ff2c0e1266a09cf204 (patch) | |
| tree | 7103cb42b1c25f02564aebdd731b6e6d48784c4e /llvm | |
| parent | 9bac1cedbc0dd3a2dda0ab71782438904911ca9b (diff) | |
| download | bcm5719-llvm-77a1f3b56400f50f58a250ff2c0e1266a09cf204.tar.gz bcm5719-llvm-77a1f3b56400f50f58a250ff2c0e1266a09cf204.zip | |
Don't perform an overaligned load in this test, since that's undefined
behaviour that might be exploited one day.
llvm-svn: 160714
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/test/Transforms/InstCombine/2012-07-25-LoadPart.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Transforms/InstCombine/2012-07-25-LoadPart.ll b/llvm/test/Transforms/InstCombine/2012-07-25-LoadPart.ll index 01dce7c7e43..73e5a6653e8 100644 --- a/llvm/test/Transforms/InstCombine/2012-07-25-LoadPart.ll +++ b/llvm/test/Transforms/InstCombine/2012-07-25-LoadPart.ll @@ -6,7 +6,7 @@ target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f3 @test = constant [4 x i32] [i32 1, i32 2, i32 3, i32 4] define i64 @foo() { - %ret = load i64* bitcast (i8* getelementptr (i8* bitcast ([4 x i32]* @test to i8*), i64 2) to i64*) + %ret = load i64* bitcast (i8* getelementptr (i8* bitcast ([4 x i32]* @test to i8*), i64 2) to i64*), align 1 ret i64 %ret ; CHECK: ret i64 844424930263040 } |

