From 73f1a406264a0168fac8062822a56887682974fc Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Mon, 15 Feb 2016 16:01:01 +0000 Subject: [PATCH] [Hexagon] Use zero-extending loads for anyext llvm-svn: 260895 --- llvm/lib/Target/Hexagon/HexagonInstrInfoV4.td | 12 ++++++------ llvm/test/CodeGen/Hexagon/gp-plus-offset-load.ll | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/llvm/lib/Target/Hexagon/HexagonInstrInfoV4.td b/llvm/lib/Target/Hexagon/HexagonInstrInfoV4.td index 37c2042..f5dd943 100644 --- a/llvm/lib/Target/Hexagon/HexagonInstrInfoV4.td +++ b/llvm/lib/Target/Hexagon/HexagonInstrInfoV4.td @@ -3779,14 +3779,14 @@ class LoadGP_pats (VT (MI tglobaladdr:$global))>; let AddedComplexity = 100 in { - def: LoadGP_pats ; - def: LoadGP_pats ; - def: LoadGP_pats ; - def: LoadGP_pats ; + def: LoadGP_pats ; + def: LoadGP_pats ; + def: LoadGP_pats ; + def: LoadGP_pats ; def: LoadGP_pats ; def: LoadGP_pats ; - def: LoadGP_pats ; - def: LoadGP_pats ; + def: LoadGP_pats ; + def: LoadGP_pats ; } // When the Interprocedural Global Variable optimizer realizes that a certain diff --git a/llvm/test/CodeGen/Hexagon/gp-plus-offset-load.ll b/llvm/test/CodeGen/Hexagon/gp-plus-offset-load.ll index cd1aacc..1143cc8 100644 --- a/llvm/test/CodeGen/Hexagon/gp-plus-offset-load.ll +++ b/llvm/test/CodeGen/Hexagon/gp-plus-offset-load.ll @@ -21,7 +21,7 @@ if.end: ; preds = %if.then, %entry } define void @loadByte(i32 %val1, i32 %val2, i8* nocapture %ival) nounwind { -; CHECK: r{{[0-9]+}}{{ *}}={{ *}}memb(##foo{{ *}}+{{ *}}1) +; CHECK: r{{[0-9]+}}{{ *}}={{ *}}memub(##foo{{ *}}+{{ *}}1) entry: %cmp = icmp sgt i32 %val1, %val2 br i1 %cmp, label %if.then, label %if.end -- 2.7.4