OSDN Git Service

[WebAssembly] Enable an atomic.notify MC test
authorHeejin Ahn <aheejin@gmail.com>
Thu, 27 Jun 2019 21:22:04 +0000 (21:22 +0000)
committerHeejin Ahn <aheejin@gmail.com>
Thu, 27 Jun 2019 21:22:04 +0000 (21:22 +0000)
Summary:
Assembly of atomic.notify has been fixed in r364576, so we can enable
it.

Reviewers: aardappel

Subscribers: dschuff, sbc100, jgravelle-google, sunfish, jfb, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D63898

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364596 91177308-0d34-0410-b5e6-96231b3b80d8

test/MC/WebAssembly/atomics-encodings.s

index 1bf52c9..20075f6 100644 (file)
@@ -3,9 +3,8 @@
 main:
   .functype main () -> ()
 
-  # FIXME This doesn't work because of PR40728. Enable this once it's fixed.
-  # C HECK:  atomic.notify 0 # encoding: [0xfe,0x00,0x00,0x00]
-  # atomic.notify 0
+  # CHECK:  atomic.notify 0 # encoding: [0xfe,0x00,0x02,0x00]
+  atomic.notify 0
   # CHECK:  i32.atomic.wait 0 # encoding: [0xfe,0x01,0x02,0x00]
   i32.atomic.wait 0
   # CHECK:  i64.atomic.wait 0 # encoding: [0xfe,0x02,0x03,0x00]