diff options
Diffstat (limited to 'test/CodeGen/XCore/load.ll')
-rw-r--r-- | test/CodeGen/XCore/load.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/XCore/load.ll b/test/CodeGen/XCore/load.ll index faff03b1e7..729fdef4c9 100644 --- a/test/CodeGen/XCore/load.ll +++ b/test/CodeGen/XCore/load.ll @@ -39,3 +39,12 @@ entry: %2 = zext i8 %1 to i32 ret i32 %2 } + +@GConst = external constant i32 +define i32 @load_cp() nounwind { +entry: +; CHECK: load_cp: +; CHECK: ldw r0, cp[GConst] + %0 = load i32* @GConst + ret i32 %0 +} |