diff options
author | Sanjay Patel <spatel@rotateright.com> | 2016-03-25 20:12:25 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2016-03-25 20:12:25 +0000 |
commit | 69632447b198448376d779de1ca790b4445c55cc (patch) | |
tree | 92a1c4b10c8f8455dc7eba1cf31705e4e4ce407e /llvm/test/Transforms/InstSimplify/load.ll | |
parent | d4c783335b9a082071f1196db85c1f2d65746103 (diff) | |
download | bcm5719-llvm-69632447b198448376d779de1ca790b4445c55cc.tar.gz bcm5719-llvm-69632447b198448376d779de1ca790b4445c55cc.zip |
[InstSimplify] regenerate checks using a script
I didn't notice any significant changes in the actual checks here;
all of these tests already used FileCheck, so a script can batch
update them in one shot.
This commit is just to show the value of automating this process:
We have uniform formatting as opposed to a mish-mash of check
structure that changes based on individual prefs and the current
fashion. This makes it simpler to update when we find a bug or
make an enhancement.
llvm-svn: 264457
Diffstat (limited to 'llvm/test/Transforms/InstSimplify/load.ll')
-rw-r--r-- | llvm/test/Transforms/InstSimplify/load.ll | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/llvm/test/Transforms/InstSimplify/load.ll b/llvm/test/Transforms/InstSimplify/load.ll index ab87d4b9c53..ba789df4ddb 100644 --- a/llvm/test/Transforms/InstSimplify/load.ll +++ b/llvm/test/Transforms/InstSimplify/load.ll @@ -1,18 +1,21 @@ +; NOTE: Assertions have been autogenerated by update_test_checks.py ; RUN: opt < %s -instsimplify -S | FileCheck %s @zeroinit = constant {} zeroinitializer @undef = constant {} undef define i32 @crash_on_zeroinit() { -; CHECK-LABEL: @crash_on_zeroinit -; CHECK: ret i32 0 +; CHECK-LABEL: @crash_on_zeroinit( +; CHECK: ret i32 0 +; %load = load i32, i32* bitcast ({}* @zeroinit to i32*) ret i32 %load } define i32 @crash_on_undef() { -; CHECK-LABEL: @crash_on_undef -; CHECK: ret i32 undef +; CHECK-LABEL: @crash_on_undef( +; CHECK: ret i32 undef +; %load = load i32, i32* bitcast ({}* @undef to i32*) ret i32 %load } |