commit | c6166c6bcaf41acab5f14aa267acec3214b75127 | [log] [tgz] |
---|---|---|
author | Kalle Raiskila <kalle.raiskila@nokia.com> | Wed Jun 09 08:29:41 2010 +0000 |
committer | Kalle Raiskila <kalle.raiskila@nokia.com> | Wed Jun 09 08:29:41 2010 +0000 |
tree | 56041a7618336f7b0a685629c99d9af523252d12 | |
parent | 007afe4b4b3f440ea1d5caebe47f7d329a71766d [diff] [blame] |
Handle loading from/storing to undef pointers on SPU by inserting a random load/store, rather than crashing llc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105710 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/CellSPU/loads.ll b/test/CodeGen/CellSPU/loads.ll index 37c6d4f..c46bcd1 100644 --- a/test/CodeGen/CellSPU/loads.ll +++ b/test/CodeGen/CellSPU/loads.ll
@@ -31,3 +31,8 @@ ret <4 x i32> %rv3 } +define <4 x float> @load_undef(){ + ;CHECK lqd $3, 0($3) + %val = load <4 x float>* undef + ret <4 x float> %val +}