summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Hexagon/vect/vect-infloop.ll
blob: 9ee0b0ab3aa6024b80ad22c3ad1e7b00321b80c3 (plain)
1
2
3
4
5
6
7
8
9
10
; Extracted from test/CodeGen/Generic/vector-casts.ll: used to loop indefinitely.
; RUN: llc -march=hexagon < %s | FileCheck %s
; CHECK: convert_df2w

define void @a(<2 x double>* %p, <2 x i8>* %q) {
  %t = load <2 x double>, <2 x double>* %p
  %r = fptosi <2 x double> %t to <2 x i8>
  store <2 x i8> %r, <2 x i8>* %q
  ret void
}
OpenPOWER on IntegriCloud