diff options
| author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2018-10-19 17:31:11 +0000 |
|---|---|---|
| committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2018-10-19 17:31:11 +0000 |
| commit | 6bfc6577f283d4566035bb0dc97d42002b6f2516 (patch) | |
| tree | 0c17105c92c505c15feb4a609696701c7ccd0c10 /llvm/test/CodeGen/Hexagon/macint.ll | |
| parent | ce3f1915f38f329a867dfb10ed1e82b49d4b52dc (diff) | |
| download | bcm5719-llvm-6bfc6577f283d4566035bb0dc97d42002b6f2516.tar.gz bcm5719-llvm-6bfc6577f283d4566035bb0dc97d42002b6f2516.zip | |
[Hexagon] Remove support for V4
llvm-svn: 344791
Diffstat (limited to 'llvm/test/CodeGen/Hexagon/macint.ll')
| -rw-r--r-- | llvm/test/CodeGen/Hexagon/macint.ll | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/llvm/test/CodeGen/Hexagon/macint.ll b/llvm/test/CodeGen/Hexagon/macint.ll index 514ba5b9130..47856f2fcb5 100644 --- a/llvm/test/CodeGen/Hexagon/macint.ll +++ b/llvm/test/CodeGen/Hexagon/macint.ll @@ -1,14 +1,15 @@ -; RUN: llc -march=hexagon -mcpu=hexagonv4 < %s | FileCheck %s +; RUN: llc -march=hexagon < %s | FileCheck %s ; Check that we generate integer multiply accumulate. ; CHECK: r{{[0-9]+}} {{\+|\-}}= mpyi(r{{[0-9]+}}, -define i32 @main(i32* %a, i32* %b) nounwind { - entry: - %0 = load i32, i32* %a, align 4 - %div = udiv i32 %0, 10000 - %rem = urem i32 %div, 10 - store i32 %rem, i32* %b, align 4 +define i32 @f0(i32* %a0, i32* %a1) #0 { +b0: + %v0 = load i32, i32* %a0, align 4 + %v1 = udiv i32 %v0, 10000 + %v2 = urem i32 %v1, 10 + store i32 %v2, i32* %a1, align 4 ret i32 0 } +attributes #0 = { nounwind "target-cpu"="hexagonv5" } |

