brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · 244c3f7 Raw
47 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 62; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 < %s | FileCheck %s3 4define i32 @known_positive(float nofpclass(nan ninf nzero nsub nnorm) %signbit.zero) #0 {5; CHECK-LABEL: known_positive:6; CHECK:       ; %bb.0:7; CHECK-NEXT:    s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)8; CHECK-NEXT:    s_setpc_b64 s[30:31]9  %cast = bitcast float %signbit.zero to i3210  %and = and i32 %cast, 214748364711  ret i32 %and12}13 14define i32 @known_positive_maybe_nan(float nofpclass(ninf nzero nsub nnorm) %signbit.zero) #0 {15; CHECK-LABEL: known_positive_maybe_nan:16; CHECK:       ; %bb.0:17; CHECK-NEXT:    s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)18; CHECK-NEXT:    v_and_b32_e32 v0, 0x7fffffff, v019; CHECK-NEXT:    s_setpc_b64 s[30:31]20  %cast = bitcast float %signbit.zero to i3221  %and = and i32 %cast, 214748364722  ret i32 %and23}24 25define i32 @known_negative(float nofpclass(nan pinf pzero psub pnorm) %signbit.one) #0 {26; CHECK-LABEL: known_negative:27; CHECK:       ; %bb.0:28; CHECK-NEXT:    s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)29; CHECK-NEXT:    s_setpc_b64 s[30:31]30  %cast = bitcast float %signbit.one to i3231  %or = or i32 %cast, -214748364832  ret i32 %or33}34 35define i32 @known_negative_maybe_nan(float nofpclass(pinf pzero psub pnorm) %signbit.one) #0 {36; CHECK-LABEL: known_negative_maybe_nan:37; CHECK:       ; %bb.0:38; CHECK-NEXT:    s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)39; CHECK-NEXT:    v_or_b32_e32 v0, 0x80000000, v040; CHECK-NEXT:    s_setpc_b64 s[30:31]41  %cast = bitcast float %signbit.one to i3242  %or = or i32 %cast, -214748364843  ret i32 %or44}45 46attributes #0 = { nounwind }47