37 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 52; RUN: opt %s -passes=instcombine -S -mtriple=i386-pc-windows-msvc | FileCheck %s --check-prefixes=MSVC193 4define double @fdim_double() {5; MSVC19-LABEL: define double @fdim_double() {6; MSVC19-NEXT: ret double 2.500000e+007;8 %dim = call double @fdim(double 10.5, double 8.0)9 ret double %dim10}11 12;fdimf is not supported by windows13define float @fdim_float() {14; MSVC19-LABEL: define float @fdim_float() {15; MSVC19-NEXT: [[DIM:%.*]] = call float @fdimf(float 1.500000e+00, float 8.000000e+00)16; MSVC19-NEXT: ret float [[DIM]]17;18 %dim = call float @fdimf(float 1.500000e+00, float 8.0)19 ret float %dim20}21 22;fdiml is not supported by windows23define fp128 @fdim_long() {24; MSVC19-LABEL: define fp128 @fdim_long() {25; MSVC19-NEXT: [[DIM:%.*]] = call fp128 @fdiml(fp128 0xL00000000000000000000000000000000, fp128 0xL00000000000000000000000000000000)26; MSVC19-NEXT: ret fp128 [[DIM]]27;28 %dim = call fp128 @fdiml(fp128 0xL00000000000000000000000000000000 , fp128 0xL00000000000000000000000000000000)29 ret fp128 %dim30}31 32declare double @fdim(double, double) #033declare float @fdimf(float, float) #034declare fp128 @fdiml(fp128, fp128) #035 36attributes #0 = { memory(none) }37