mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
8b2b8a1835
This update was done with the following bash script: find test/CodeGen -name "*.ll" | \ while read NAME; do echo "$NAME" if ! grep -q "^; *RUN: *llc.*debug" $NAME; then TEMP=`mktemp -t temp` cp $NAME $TEMP sed -n "s/^define [^@]*@\([A-Za-z0-9_]*\)(.*$/\1/p" < $NAME | \ while read FUNC; do sed -i '' "s/;\(.*\)\([A-Za-z0-9_-]*\):\( *\)$FUNC: *\$/;\1\2-LABEL:\3$FUNC:/g" $TEMP done sed -i '' "s/;\(.*\)-LABEL-LABEL:/;\1-LABEL:/" $TEMP sed -i '' "s/;\(.*\)-NEXT-LABEL:/;\1-NEXT:/" $TEMP sed -i '' "s/;\(.*\)-NOT-LABEL:/;\1-NOT:/" $TEMP sed -i '' "s/;\(.*\)-DAG-LABEL:/;\1-DAG:/" $TEMP mv $TEMP $NAME fi done git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186280 91177308-0d34-0410-b5e6-96231b3b80d8
66 lines
2.1 KiB
LLVM
66 lines
2.1 KiB
LLVM
; RUN: llc < %s -march=x86-64 -mattr=+avx -asm-verbose=false -enable-unsafe-fp-math -enable-no-nans-fp-math | FileCheck -check-prefix=UNSAFE %s
|
|
|
|
; UNSAFE-LABEL: maxpd:
|
|
; UNSAFE: vmaxpd {{.+}}, %xmm
|
|
define <2 x double> @maxpd(<2 x double> %x, <2 x double> %y) {
|
|
%max_is_x = fcmp oge <2 x double> %x, %y
|
|
%max = select <2 x i1> %max_is_x, <2 x double> %x, <2 x double> %y
|
|
ret <2 x double> %max
|
|
}
|
|
|
|
; UNSAFE-LABEL: minpd:
|
|
; UNSAFE: vminpd {{.+}}, %xmm
|
|
define <2 x double> @minpd(<2 x double> %x, <2 x double> %y) {
|
|
%min_is_x = fcmp ole <2 x double> %x, %y
|
|
%min = select <2 x i1> %min_is_x, <2 x double> %x, <2 x double> %y
|
|
ret <2 x double> %min
|
|
}
|
|
|
|
; UNSAFE-LABEL: maxps:
|
|
; UNSAFE: vmaxps {{.+}}, %xmm
|
|
define <4 x float> @maxps(<4 x float> %x, <4 x float> %y) {
|
|
%max_is_x = fcmp oge <4 x float> %x, %y
|
|
%max = select <4 x i1> %max_is_x, <4 x float> %x, <4 x float> %y
|
|
ret <4 x float> %max
|
|
}
|
|
|
|
; UNSAFE-LABEL: minps:
|
|
; UNSAFE: vminps {{.+}}, %xmm
|
|
define <4 x float> @minps(<4 x float> %x, <4 x float> %y) {
|
|
%min_is_x = fcmp ole <4 x float> %x, %y
|
|
%min = select <4 x i1> %min_is_x, <4 x float> %x, <4 x float> %y
|
|
ret <4 x float> %min
|
|
}
|
|
|
|
; UNSAFE-LABEL: vmaxpd:
|
|
; UNSAFE: vmaxpd {{.+}}, %ymm
|
|
define <4 x double> @vmaxpd(<4 x double> %x, <4 x double> %y) {
|
|
%max_is_x = fcmp oge <4 x double> %x, %y
|
|
%max = select <4 x i1> %max_is_x, <4 x double> %x, <4 x double> %y
|
|
ret <4 x double> %max
|
|
}
|
|
|
|
; UNSAFE-LABEL: vminpd:
|
|
; UNSAFE: vminpd {{.+}}, %ymm
|
|
define <4 x double> @vminpd(<4 x double> %x, <4 x double> %y) {
|
|
%min_is_x = fcmp ole <4 x double> %x, %y
|
|
%min = select <4 x i1> %min_is_x, <4 x double> %x, <4 x double> %y
|
|
ret <4 x double> %min
|
|
}
|
|
|
|
; UNSAFE-LABEL: vmaxps:
|
|
; UNSAFE: vmaxps {{.+}}, %ymm
|
|
define <8 x float> @vmaxps(<8 x float> %x, <8 x float> %y) {
|
|
%max_is_x = fcmp oge <8 x float> %x, %y
|
|
%max = select <8 x i1> %max_is_x, <8 x float> %x, <8 x float> %y
|
|
ret <8 x float> %max
|
|
}
|
|
|
|
; UNSAFE-LABEL: vminps:
|
|
; UNSAFE: vminps {{.+}}, %ymm
|
|
define <8 x float> @vminps(<8 x float> %x, <8 x float> %y) {
|
|
%min_is_x = fcmp ole <8 x float> %x, %y
|
|
%min = select <8 x i1> %min_is_x, <8 x float> %x, <8 x float> %y
|
|
ret <8 x float> %min
|
|
}
|