|
| 1 | +;; RUN: llc --mtriple=hexagon -mattr=+hvxv79,+hvx-length128b %s -o - | FileCheck %s |
| 2 | + |
| 3 | +define dso_local void @store_isnan_f32(ptr %a, ptr %isnan_a) local_unnamed_addr { |
| 4 | +entry: |
| 5 | + %arrayidx = getelementptr inbounds nuw float, ptr %a, i32 0 |
| 6 | + %0 = load <32 x float>, ptr %arrayidx, align 4 |
| 7 | + %.vectorized = fcmp uno <32 x float> %0, zeroinitializer |
| 8 | + %.LS.instance = zext <32 x i1> %.vectorized to <32 x i32> |
| 9 | + %arrayidx1 = getelementptr inbounds nuw i32, ptr %isnan_a, i32 0 |
| 10 | + store <32 x i32> %.LS.instance, ptr %arrayidx1, align 4 |
| 11 | + ret void |
| 12 | +} |
| 13 | +;; CHECK: store_isnan_f32 |
| 14 | +;; CHECK: vcmp.eq({{v[0-9]+.w}},{{v[0-9]+.w}}) |
| 15 | + |
| 16 | +define dso_local void @store_isnan_f16(ptr %a, ptr %isnan_a) local_unnamed_addr { |
| 17 | +entry: |
| 18 | + %arrayidx = getelementptr inbounds nuw half, ptr %a, i32 0 |
| 19 | + %0 = load <64 x half>, ptr %arrayidx, align 2 |
| 20 | + %.vectorized = fcmp uno <64 x half> %0, zeroinitializer |
| 21 | + %conv.LS.instance = zext <64 x i1> %.vectorized to <64 x i16> |
| 22 | + %arrayidx1 = getelementptr inbounds nuw i16, ptr %isnan_a, i32 0 |
| 23 | + store <64 x i16> %conv.LS.instance, ptr %arrayidx1, align 2 |
| 24 | + ret void |
| 25 | +} |
| 26 | + |
| 27 | +;; CHECK: store_isnan_f16 |
| 28 | +;; CHECK: vcmp.eq({{v[0-9]+.h}},{{v[0-9]+.h}}) |
0 commit comments