<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>189535</bug_id>
          
          <creation_ts>2018-09-11 18:54:09 -0700</creation_ts>
          <short_desc>[WHLSL] The standard library should be fully tested</short_desc>
          <delta_ts>2018-10-13 14:54:37 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>176199</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Thomas Denney">tdenney</reporter>
          <assigned_to name="Thomas Denney">tdenney</assigned_to>
          <cc>dino</cc>
    
    <cc>mmaxfield</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1458816</commentid>
    <comment_count>0</comment_count>
    <who name="Thomas Denney">tdenney</who>
    <bug_when>2018-09-11 18:54:09 -0700</bug_when>
    <thetext>[WHLSL] The standard library should be fully tested</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1458817</commentid>
    <comment_count>1</comment_count>
      <attachid>349500</attachid>
    <who name="Thomas Denney">tdenney</who>
    <bug_when>2018-09-11 18:54:46 -0700</bug_when>
    <thetext>Created attachment 349500
WIP</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1458820</commentid>
    <comment_count>2</comment_count>
    <who name="Thomas Denney">tdenney</who>
    <bug_when>2018-09-11 19:00:05 -0700</bug_when>
    <thetext>We cannot remove the preparation stage that type checks the standard library in full (which makes running tests *much* faster) without ensuring that every function in the standard library is tested to ensure that each standard library function actually gets type checked.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1462209</commentid>
    <comment_count>3</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2018-09-21 18:16:23 -0700</bug_when>
    <thetext>There are a couple functions that I&apos;m not very confident that their behavior matches HLSL:

firstbithigh()
firstbitlow()
countbits()
reversebits()
all the texturing functions

Also, these functions are implemented in a suboptimal way:

log2()
log10()
exp2()
fmod()
isordered()

Also: fma() and mad() are implemented identically, and I&apos;m not sure if this is right.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1462230</commentid>
    <comment_count>4</comment_count>
    <who name="Thomas Denney">tdenney</who>
    <bug_when>2018-09-21 18:57:18 -0700</bug_when>
    <thetext>(In reply to Myles C. Maxfield from comment #3)
&gt; There are a couple functions that I&apos;m not very confident that their behavior
&gt; matches HLSL:
&gt; 
&gt; firstbithigh()
&gt; firstbitlow()
&gt; countbits()
&gt; reversebits()
&gt; all the texturing functions
&gt; 
&gt; Also, these functions are implemented in a suboptimal way:
&gt; 
&gt; log2()
&gt; log10()
&gt; exp2()
&gt; fmod()
&gt; isordered()
&gt; 
&gt; Also: fma() and mad() are implemented identically, and I&apos;m not sure if this
&gt; is right.

Likewise I’m pretty sure that isnormal isn’t implement correctly (it currently returns isNaN).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1468812</commentid>
    <comment_count>5</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2018-10-13 14:30:56 -0700</bug_when>
    <thetext>Migrated to https://api.github.com/repos/gpuweb/WHLSL/issues/36</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1468858</commentid>
    <comment_count>6</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2018-10-13 14:54:37 -0700</bug_when>
    <thetext>https://github.com/gpuweb/WHLSL/issues/36</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>349500</attachid>
            <date>2018-09-11 18:54:46 -0700</date>
            <delta_ts>2018-09-11 18:54:46 -0700</delta_ts>
            <desc>WIP</desc>
            <filename>bug-189535-20180911185446.patch</filename>
            <type>text/plain</type>
            <size>1406</size>
            <attacher name="Thomas Denney">tdenney</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjM1OTI1CmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggYzY4NGE1ZTcyMzVlMmE3Njc1NjcyYjY4NTUwZDA0OGI3
NTk4ZjMyZi4uMjZiNTg5NTNjMjIwM2MyY2NiZTk1ZTZiNTg1MGExOWM2YzRkMjYyMCAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDEz
IEBACisyMDE4LTA5LTExICBUaG9tYXMgRGVubmV5ICA8dGRlbm5leUBhcHBsZS5jb20+CisKKyAg
ICAgICAgW1dITFNMXSBUaGUgc3RhbmRhcmQgbGlicmFyeSBzaG91bGQgYmUgZnVsbHkgdGVzdGVk
CisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xODk1MzUK
KworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICAqIFdlYkdQ
VVNoYWRpbmdMYW5ndWFnZVJJL1Rlc3QuanM6IERlbGV0ZWQgdGhlIGluaXRpYWwgdHlwZSBjaGVj
ayBvZiB0aGUKKyAgICAgICAgc3RhbmRhcmQgbGlicmFyeTsgdGhpcyBub3cgaGFwcGVucyBsYXpp
bHkuCisKIDIwMTgtMDktMDcgI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