<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - .org confused by .align"
   href="http://llvm.org/bugs/show_bug.cgi?id=21501">21501</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>.org confused by .align
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.4
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>FreeBSD
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rth@twiddle.net
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The assembler is attempting to resolve expressions before resolving alignment.

$ cat z.S
0:
    .org    0b + 3, 0x90
    .align    8
    .org    0b + 11, 0x90
$ cc -c z.S
z.S:4:7: error: expected assembly-time absolute expression
 .org 0b + 11, 0x90

Note that this works with gas:

$ as -o z.o z.S
$ objdump -dr z.o

z.o:     file format elf64-x86-64-freebsd


Disassembly of section .text:

0000000000000000 <.text>:
   0:    90                       nop
   1:    90                       nop
   2:    90                       nop
   3:    0f 1f 44 00 00           nopl   0x0(%rax,%rax,1)
   8:    90                       nop
   9:    90                       nop
   a:    90                       nop

$ as --version
GNU assembler (GNU Binutils) 2.24
Copyright 2013 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `x86_64-portbld-freebsd10.0'.
$ cc --version
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
Target: x86_64-unknown-freebsd10.1
Thread model: posix</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>