<?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>219395</bug_id>
          
          <creation_ts>2020-12-01 06:08:52 -0800</creation_ts>
          <short_desc>[JSC] Aarch64 build failure</short_desc>
          <delta_ts>2020-12-01 12:04:18 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=218990</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lauro Moura">lmoura</reporter>
          <assigned_to name="Sergey Rubanov">chi187</assigned_to>
          <cc>chi187</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>keith_miller</cc>
    
    <cc>mark.lam</cc>
    
    <cc>msaboff</cc>
    
    <cc>saam</cc>
    
    <cc>tzagallo</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1711018</commentid>
    <comment_count>0</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2020-12-01 06:08:52 -0800</bug_when>
    <thetext>The JSC-Only Aarch64 bot[1] is failing with the following error:

```
/usr/bin/ccache /home/buildbot/linaro/toolchain/bin/aarch64-linux-gnu-g++ --sysroot=/home/buildbot/linaro/toolchain/sysroot  -DBUILDING_JSCONLY__ -DBUILDING_WITH_CMAKE=1 -DHAVE_CONFIG_H=1 -DSTATICALLY_LINKED_WITH_WTF -IDerivedSources/ForwardingHeaders -I. -I../../Source/JavaScriptCore -I../../Source/JavaScriptCore/API -I../../Source/JavaScriptCore/assembler -I../../Source/JavaScriptCore/b3 -I../../Source/JavaScriptCore/b3/air -I../../Source/JavaScriptCore/bindings -I../../Source/JavaScriptCore/builtins -I../../Source/JavaScriptCore/bytecode -I../../Source/JavaScriptCore/bytecompiler -I../../Source/JavaScriptCore/dfg -I../../Source/JavaScriptCore/disassembler -I../../Source/JavaScriptCore/disassembler/ARM64 -I../../Source/JavaScriptCore/disassembler/udis86 -I../../Source/JavaScriptCore/domjit -I../../Source/JavaScriptCore/ftl -I../../Source/JavaScriptCore/heap -I../../Source/JavaScriptCore/debugger -I../../Source/JavaScriptCore/inspector -I../../Source/JavaScriptCore/inspector/agents -I../../Source/JavaScriptCore/inspector/augmentable -I../../Source/JavaScriptCore/inspector/remote -I../../Source/JavaScriptCore/interpreter -I../../Source/JavaScriptCore/jit -I../../Source/JavaScriptCore/llint -I../../Source/JavaScriptCore/parser -I../../Source/JavaScriptCore/profiler -I../../Source/JavaScriptCore/runtime -I../../Source/JavaScriptCore/tools -I../../Source/JavaScriptCore/wasm -I../../Source/JavaScriptCore/wasm/js -I../../Source/JavaScriptCore/yarr -IDerivedSources/JavaScriptCore -IDerivedSources/JavaScriptCore/inspector -IDerivedSources/JavaScriptCore/runtime -IDerivedSources/JavaScriptCore/yarr -fdiagnostics-color=always -Wextra -Wall -Wno-expansion-to-defined -Wno-attributes -Wno-noexcept-type -Wno-psabi -Wno-misleading-indentation -Wno-maybe-uninitialized -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Wno-tautological-compare  -fno-strict-aliasing -fno-exceptions -fno-rtti -O3 -DNDEBUG -fPIC   -std=c++1z -MD -MT Source/JavaScriptCore/CMakeFiles/LowLevelInterpreterLib.dir/llint/LowLevelInterpreter.cpp.o -MF Source/JavaScriptCore/CMakeFiles/LowLevelInterpreterLib.dir/llint/LowLevelInterpreter.cpp.o.d -o Source/JavaScriptCore/CMakeFiles/LowLevelInterpreterLib.dir/llint/LowLevelInterpreter.cpp.o -c ../../Source/JavaScriptCore/llint/LowLevelInterpreter.cpp
/tmp/ccYwnhHg.s: Assembler messages:
/tmp/ccYwnhHg.s:65123: Error: operand mismatch -- `sxtb x1,x0&apos;
/tmp/ccYwnhHg.s:65123: Info:    did you mean this?
/tmp/ccYwnhHg.s:65123: Info:    	sxtb x1, w0
/tmp/ccYwnhHg.s:65123: Info:    other valid variant(s):
/tmp/ccYwnhHg.s:65123: Info:    	sxtb w1, w0
...
```

Likely related to r270265, which added the following snippet?

```
--- a/Source/JavaScriptCore/offlineasm/arm64.rb
+++ b/Source/JavaScriptCore/offlineasm/arm64.rb
@@ -901,6 +901,10 @@ class Instruction
             emitARM64(&quot;sxtb&quot;, operands, [:word, :word])
         when &quot;sxh2i&quot;
             emitARM64(&quot;sxth&quot;, operands, [:word, :word])
+        when &quot;sxb2q&quot;
+            emitARM64(&quot;sxtb&quot;, operands, [:quad, :quad])
+        when &quot;sxh2q&quot;
+            emitARM64(&quot;sxth&quot;, operands, [:quad, :quad])
         when &quot;nop&quot;
             $asm.puts &quot;nop&quot;
         when &quot;bieq&quot;, &quot;bbeq&quot;
```

[1] https://build.webkit.org/builders/JSCOnly-Linux-AArch64-Release?numbuilds=50</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1711026</commentid>
    <comment_count>1</comment_count>
      <attachid>415134</attachid>
    <who name="Sergey Rubanov">chi187</who>
    <bug_when>2020-12-01 06:47:37 -0800</bug_when>
    <thetext>Created attachment 415134
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1711027</commentid>
    <comment_count>2</comment_count>
    <who name="Sergey Rubanov">chi187</who>
    <bug_when>2020-12-01 06:50:04 -0800</bug_when>
    <thetext>(In reply to Lauro Moura from comment #0)
&gt; The JSC-Only Aarch64 bot[1] is failing with the following error:
&gt; 
&gt; ```
&gt; /usr/bin/ccache /home/buildbot/linaro/toolchain/bin/aarch64-linux-gnu-g++
&gt; --sysroot=/home/buildbot/linaro/toolchain/sysroot  -DBUILDING_JSCONLY__
&gt; -DBUILDING_WITH_CMAKE=1 -DHAVE_CONFIG_H=1 -DSTATICALLY_LINKED_WITH_WTF
&gt; -IDerivedSources/ForwardingHeaders -I. -I../../Source/JavaScriptCore
&gt; -I../../Source/JavaScriptCore/API -I../../Source/JavaScriptCore/assembler
&gt; -I../../Source/JavaScriptCore/b3 -I../../Source/JavaScriptCore/b3/air
&gt; -I../../Source/JavaScriptCore/bindings
&gt; -I../../Source/JavaScriptCore/builtins
&gt; -I../../Source/JavaScriptCore/bytecode
&gt; -I../../Source/JavaScriptCore/bytecompiler -I../../Source/JavaScriptCore/dfg
&gt; -I../../Source/JavaScriptCore/disassembler
&gt; -I../../Source/JavaScriptCore/disassembler/ARM64
&gt; -I../../Source/JavaScriptCore/disassembler/udis86
&gt; -I../../Source/JavaScriptCore/domjit -I../../Source/JavaScriptCore/ftl
&gt; -I../../Source/JavaScriptCore/heap -I../../Source/JavaScriptCore/debugger
&gt; -I../../Source/JavaScriptCore/inspector
&gt; -I../../Source/JavaScriptCore/inspector/agents
&gt; -I../../Source/JavaScriptCore/inspector/augmentable
&gt; -I../../Source/JavaScriptCore/inspector/remote
&gt; -I../../Source/JavaScriptCore/interpreter -I../../Source/JavaScriptCore/jit
&gt; -I../../Source/JavaScriptCore/llint -I../../Source/JavaScriptCore/parser
&gt; -I../../Source/JavaScriptCore/profiler -I../../Source/JavaScriptCore/runtime
&gt; -I../../Source/JavaScriptCore/tools -I../../Source/JavaScriptCore/wasm
&gt; -I../../Source/JavaScriptCore/wasm/js -I../../Source/JavaScriptCore/yarr
&gt; -IDerivedSources/JavaScriptCore -IDerivedSources/JavaScriptCore/inspector
&gt; -IDerivedSources/JavaScriptCore/runtime -IDerivedSources/JavaScriptCore/yarr
&gt; -fdiagnostics-color=always -Wextra -Wall -Wno-expansion-to-defined
&gt; -Wno-attributes -Wno-noexcept-type -Wno-psabi -Wno-misleading-indentation
&gt; -Wno-maybe-uninitialized -Wwrite-strings -Wundef -Wpointer-arith
&gt; -Wmissing-format-attribute -Wformat-security -Wcast-align
&gt; -Wno-tautological-compare  -fno-strict-aliasing -fno-exceptions -fno-rtti
&gt; -O3 -DNDEBUG -fPIC   -std=c++1z -MD -MT
&gt; Source/JavaScriptCore/CMakeFiles/LowLevelInterpreterLib.dir/llint/
&gt; LowLevelInterpreter.cpp.o -MF
&gt; Source/JavaScriptCore/CMakeFiles/LowLevelInterpreterLib.dir/llint/
&gt; LowLevelInterpreter.cpp.o.d -o
&gt; Source/JavaScriptCore/CMakeFiles/LowLevelInterpreterLib.dir/llint/
&gt; LowLevelInterpreter.cpp.o -c
&gt; ../../Source/JavaScriptCore/llint/LowLevelInterpreter.cpp
&gt; /tmp/ccYwnhHg.s: Assembler messages:
&gt; /tmp/ccYwnhHg.s:65123: Error: operand mismatch -- `sxtb x1,x0&apos;
&gt; /tmp/ccYwnhHg.s:65123: Info:    did you mean this?
&gt; /tmp/ccYwnhHg.s:65123: Info:    	sxtb x1, w0
&gt; /tmp/ccYwnhHg.s:65123: Info:    other valid variant(s):
&gt; /tmp/ccYwnhHg.s:65123: Info:    	sxtb w1, w0
&gt; ...
&gt; ```
&gt; 
&gt; Likely related to r270265, which added the following snippet?
&gt; 
&gt; ```
&gt; --- a/Source/JavaScriptCore/offlineasm/arm64.rb
&gt; +++ b/Source/JavaScriptCore/offlineasm/arm64.rb
&gt; @@ -901,6 +901,10 @@ class Instruction
&gt;              emitARM64(&quot;sxtb&quot;, operands, [:word, :word])
&gt;          when &quot;sxh2i&quot;
&gt;              emitARM64(&quot;sxth&quot;, operands, [:word, :word])
&gt; +        when &quot;sxb2q&quot;
&gt; +            emitARM64(&quot;sxtb&quot;, operands, [:quad, :quad])
&gt; +        when &quot;sxh2q&quot;
&gt; +            emitARM64(&quot;sxth&quot;, operands, [:quad, :quad])
&gt;          when &quot;nop&quot;
&gt;              $asm.puts &quot;nop&quot;
&gt;          when &quot;bieq&quot;, &quot;bbeq&quot;
&gt; ```
&gt; 
&gt; [1]
&gt; https://build.webkit.org/builders/JSCOnly-Linux-AArch64-Release?numbuilds=50

Oh, yes, the source register operand of sxt instructions should be a word</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1711111</commentid>
    <comment_count>3</comment_count>
      <attachid>415134</attachid>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2020-12-01 11:21:08 -0800</bug_when>
    <thetext>Comment on attachment 415134
Patch

r=me if EWS gets green</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1711119</commentid>
    <comment_count>4</comment_count>
      <attachid>415134</attachid>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2020-12-01 11:57:31 -0800</bug_when>
    <thetext>Comment on attachment 415134
Patch

mac-debug-wk1 EWS is getting stuck now and will not get tests soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1711120</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2020-12-01 12:03:20 -0800</bug_when>
    <thetext>Committed r270322: &lt;https://trac.webkit.org/changeset/270322&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 415134.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1711121</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-12-01 12:04:18 -0800</bug_when>
    <thetext>&lt;rdar://problem/71861265&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>415134</attachid>
            <date>2020-12-01 06:47:37 -0800</date>
            <delta_ts>2020-12-01 12:03:20 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-219395-20201201174735.patch</filename>
            <type>text/plain</type>
            <size>1391</size>
            <attacher name="Sergey Rubanov">chi187</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjcwMjk0CmRpZmYgLS1naXQgYS9Tb3VyY2UvSmF2YVNjcmlw
dENvcmUvQ2hhbmdlTG9nIGIvU291cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwppbmRleCBm
ZDAwOWUzYWUyNWVmODdlYTJiY2Y2MzljY2YwNjM2OGJjNGE0ZDFiLi5iNDBmZjdjYzMwMTI0MjJh
ZGIwN2Q4OTNlYTc0MTJmMDM3ZGExNDhlIDEwMDY0NAotLS0gYS9Tb3VyY2UvSmF2YVNjcmlwdENv
cmUvQ2hhbmdlTG9nCisrKyBiL1NvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKQEAgLTEs
MyArMSwxMiBAQAorMjAyMC0xMi0wMSAgU2VyZ2V5IFJ1YmFub3YgIDxjaGkxODdAZ21haWwuY29t
PgorCisgICAgICAgIEZpeCBBYXJjaDY0IGJ1aWxkIGZhaWx1cmUKKyAgICAgICAgaHR0cHM6Ly9i
dWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTIxOTM5NQorCisgICAgICAgIFJldmlld2Vk
IGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgICogb2ZmbGluZWFzbS9hcm02NC5yYjoKKwog
MjAyMC0xMi0wMSAgTGF1cm8gTW91cmEgIDxsbW91cmFAaWdhbGlhLmNvbT4KIAogICAgICAgICBb
SlNDXSBNYWtlIEJ5dGVjb2RlcyBnZW5lcmF0b3IgY29tbWFuZCBhbHNvIGRlcGVuZCBvbiB3YXNt
Lmpzb24KZGlmZiAtLWdpdCBhL1NvdXJjZS9KYXZhU2NyaXB0Q29yZS9vZmZsaW5lYXNtL2FybTY0
LnJiIGIvU291cmNlL0phdmFTY3JpcHRDb3JlL29mZmxpbmVhc20vYXJtNjQucmIKaW5kZXggNDY1
MzJhNmRkMDdlM2Q0N2E5ZjUxNDQ3MTdmMmM5NDFiZDY5YmIxYi4uNzc3YzEwMDMxODY4NTRhYTVi
YjQyNGI2MGJhZDc1ODUzMzhlMjQzNyAxMDA2NDQKLS0tIGEvU291cmNlL0phdmFTY3JpcHRDb3Jl
L29mZmxpbmVhc20vYXJtNjQucmIKKysrIGIvU291cmNlL0phdmFTY3JpcHRDb3JlL29mZmxpbmVh
c20vYXJtNjQucmIKQEAgLTkwMiw5ICs5MDIsOSBAQCBjbGFzcyBJbnN0cnVjdGlvbgogICAgICAg
ICB3aGVuICJzeGgyaSIKICAgICAgICAgICAgIGVtaXRBUk02NCgic3h0aCIsIG9wZXJhbmRzLCBb
OndvcmQsIDp3b3JkXSkKICAgICAgICAgd2hlbiAic3hiMnEiCi0gICAgICAgICAgICBlbWl0QVJN
NjQoInN4dGIiLCBvcGVyYW5kcywgWzpxdWFkLCA6cXVhZF0pCisgICAgICAgICAgICBlbWl0QVJN
NjQoInN4dGIiLCBvcGVyYW5kcywgWzp3b3JkLCA6cXVhZF0pCiAgICAgICAgIHdoZW4gInN4aDJx
IgotICAgICAgICAgICAgZW1pdEFSTTY0KCJzeHRoIiwgb3BlcmFuZHMsIFs6cXVhZCwgOnF1YWRd
KQorICAgICAgICAgICAgZW1pdEFSTTY0KCJzeHRoIiwgb3BlcmFuZHMsIFs6d29yZCwgOnF1YWRd
KQogICAgICAgICB3aGVuICJub3AiCiAgICAgICAgICAgICAkYXNtLnB1dHMgIm5vcCIKICAgICAg
ICAgd2hlbiAiYmllcSIsICJiYmVxIgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>