summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Hexagon/dfp.ll
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2018-12-05 21:01:07 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2018-12-05 21:01:07 +0000
commit545a68ca4bf912d57beecf5ea63f4e8726b5150d (patch)
tree8e6f4801b232250eb3593f4f59cdf176687f98b0 /llvm/test/CodeGen/Hexagon/dfp.ll
parent0da68bae8980bb69e498fc1a2867ff68fd0f72cc (diff)
downloadbcm5719-llvm-545a68ca4bf912d57beecf5ea63f4e8726b5150d.tar.gz
bcm5719-llvm-545a68ca4bf912d57beecf5ea63f4e8726b5150d.zip
[Hexagon] Add instruction definitions for Hexagon V66
llvm-svn: 348411
Diffstat (limited to 'llvm/test/CodeGen/Hexagon/dfp.ll')
-rw-r--r--llvm/test/CodeGen/Hexagon/dfp.ll19
1 files changed, 19 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Hexagon/dfp.ll b/llvm/test/CodeGen/Hexagon/dfp.ll
new file mode 100644
index 00000000000..e4fe10bad0b
--- /dev/null
+++ b/llvm/test/CodeGen/Hexagon/dfp.ll
@@ -0,0 +1,19 @@
+; RUN: llc -march=hexagon < %s | FileCheck %s
+
+; CHECK-LABEL: df_add:
+; CHECK: dfadd
+define double @df_add(double %x, double %y) local_unnamed_addr #0 {
+entry:
+ %add = fadd double %x, %y
+ ret double %add
+}
+
+; CHECK-LABEL: df_sub:
+; CHECK: dfsub
+define double @df_sub(double %x, double %y) local_unnamed_addr #0 {
+entry:
+ %sub = fsub double %x, %y
+ ret double %sub
+}
+
+attributes #0 = { norecurse nounwind readnone "target-cpu"="hexagonv66" }
OpenPOWER on IntegriCloud