aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/default-alignment.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/InstCombine/default-alignment.ll')
-rw-r--r--test/Transforms/InstCombine/default-alignment.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/default-alignment.ll b/test/Transforms/InstCombine/default-alignment.ll
new file mode 100644
index 0000000..718da21
--- /dev/null
+++ b/test/Transforms/InstCombine/default-alignment.ll
@@ -0,0 +1,10 @@
+; RUN: opt -verify -instcombine < %s
+%Foo = type <{ i8, x86_fp80 }>
+
+define i8 @t(%Foo* %arg) {
+entry:
+ %0 = getelementptr %Foo, %Foo* %arg, i32 0, i32 0
+ %1 = load i8, i8* %0, align 1
+ ret i8 %1
+}
+