summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2013-04-25 15:45:38 -0400
committerAdam Jackson <ajax@redhat.com>2013-05-02 10:34:08 -0400
commit16296cc843ef82dd0a7e345b377fbc4535f9e519 (patch)
treebcf33bd4738ec10e6063be99a06afc0ecbdceb8e /src/gallium/auxiliary/gallivm
parent35c5b95b947d5e856587905b0a96e10f59866125 (diff)
downloadexternal_mesa3d-16296cc843ef82dd0a7e345b377fbc4535f9e519.zip
external_mesa3d-16296cc843ef82dd0a7e345b377fbc4535f9e519.tar.gz
external_mesa3d-16296cc843ef82dd0a7e345b377fbc4535f9e519.tar.bz2
gallivm: Fix altivec intrinsics for 8xi16 add/sub
Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'src/gallium/auxiliary/gallivm')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_arit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_arit.c b/src/gallium/auxiliary/gallivm/lp_bld_arit.c
index ec05026..524a8e7 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_arit.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_arit.c
@@ -378,7 +378,7 @@ lp_build_add(struct lp_build_context *bld,
if(type.width == 8)
intrinsic = type.sign ? "llvm.ppc.altivec.vaddsbs" : "llvm.ppc.altivec.vaddubs";
if(type.width == 16)
- intrinsic = type.sign ? "llvm.ppc.altivec.vaddsws" : "llvm.ppc.altivec.vadduws";
+ intrinsic = type.sign ? "llvm.ppc.altivec.vaddshs" : "llvm.ppc.altivec.vadduhs";
}
}
@@ -655,7 +655,7 @@ lp_build_sub(struct lp_build_context *bld,
if(type.width == 8)
intrinsic = type.sign ? "llvm.ppc.altivec.vsubsbs" : "llvm.ppc.altivec.vsububs";
if(type.width == 16)
- intrinsic = type.sign ? "llvm.ppc.altivec.vsubsws" : "llvm.ppc.altivec.vsubuws";
+ intrinsic = type.sign ? "llvm.ppc.altivec.vsubshs" : "llvm.ppc.altivec.vsubuhs";
}
}