2015-01-07 02:00:21 +08:00
|
|
|
; RUN: llc -march=amdgcn -mcpu=verde -verify-machineinstrs < %s | FileCheck %s
|
2015-01-28 01:27:15 +08:00
|
|
|
; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck %s
|
2013-03-27 23:27:31 +08:00
|
|
|
|
2014-10-02 01:15:17 +08:00
|
|
|
; CHECK-LABEL: {{^}}main:
|
2014-11-05 22:50:53 +08:00
|
|
|
; CHECK: v_cmp_u_f32_e64 [[CMP:s\[[0-9]+:[0-9]+\]]], [[SREG:s[0-9]+]], [[SREG]]
|
2015-01-08 23:08:17 +08:00
|
|
|
; CHECK-NEXT: v_cndmask_b32_e64 {{v[0-9]+}}, 0, 1.0, [[CMP]]
|
2017-02-22 08:02:21 +08:00
|
|
|
define amdgpu_ps float @main(float inreg %p) {
|
2013-03-27 23:27:31 +08:00
|
|
|
main_body:
|
|
|
|
%c = fcmp une float %p, %p
|
|
|
|
%r = select i1 %c, float 1.000000e+00, float 0.000000e+00
|
2017-02-22 08:02:21 +08:00
|
|
|
ret float %r
|
2013-03-27 23:27:31 +08:00
|
|
|
}
|